<?php
/**
 * @version $Id: admin.unocart.html.php 25 2010-05-21 22:52:30Z vladzimirs@gmail.com $
 * @package UnoCart
 * @copyright Авторские права (C) 2009-2010 UnoCart team & (C) 2007-2010 Joostina team &. Все права защищены.
 * @license Лицензия http://www.gnu.org/licenses/gpl-2.0.htm GNU/GPL, или help/license.php
 * UnoCart! - свободное программное обеспечение распространяемое по условиям лицензии GNU/GPL
 * Для получения информации о используемых расширениях и замечаний об авторском праве, смотрите файл help/copyright.php.
 */
defined('_VALID_MOS') or die('Restricted access');
//$mainframe->addJS($mainframe->getCfg('live_site').'/includes/js/jquery/jquery.js');
echo '<script type = "text/javascript">jQuery.noConflict();</script>';
echo '<script type = "text/javascript" src = "' . $unocartConfig->live_path .
    'js/functions.js" /></script>';
echo '<link rel = "stylesheet" type = "text/css" href = "' . $unocartConfig->
    live_admin_path . 'css/style.css" />';

class mosJTabs extends mosTabs
{
    function mosJTabs($useCookies, $xhtml = null)
    {
        global $mosConfig_live_site, $mainframe, $unocartConfig;
        if ($xhtml) {
            $mainframe->addCustomHeadTag('<link rel="stylesheet" type="text/css" media="all" href="administrator/components/com_unocart/css/style.tabs.css" id="tabs-shop-style-sheet" />');
        } else {
            echo "<link id=\"tabs-shop-style-sheet\" type=\"text/css\" rel=\"stylesheet\" href=\"" .
                $mosConfig_live_site . "/administrator/components/com_unocart/css/style.tabs.css\" />";
        }
        echo "<script type=\"text/javascript\" src=\"" . $mosConfig_live_site .
            "/includes/js/tabs/tabpane_mini.js\"></script>";
        $this->useCookies = $useCookies;

    }
}
class HTML_UNOCART
{
    function startFormConfig()
    {

?>
			<form action = "index2.php" method = "post" name = "adminForm" enctype = "multipart/form-data">
		<?php

    }
    function endFormConfig()
    {

?>
	    	<input type = "hidden" name = "tab" value = "<?php

        echo mosGetParam($_REQUEST, 'tab')

?>" />
			<input type = "hidden" name = "option" value = "com_unocart" />
		    <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
		    <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
	        <input type = "hidden" name = "id" value = "1" />
	        <input type = "hidden" name = "hidemainmenu" value = "0" />
		</form>
		<?php

    }
    function showConfigTab1($unocartConfig, $lists)
    {
        mosCommonHTML::loadOverlib();
        HTML_UNOCART::startFormConfig();

?>
			<table class = "adminheading">
          		<tr>
            		<th>
              			<?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_EDIT_CONFIG;

?>
            		</th>
          		</tr>
        	</table>
        	<table width = "50%">
          		<tr>
            		<td>
              			<?php

        echo _UNOCART_MAIN_LANGUAGE;

?>
            		</td>
            		<td>
              			<?php

        echo $lists['languages'];

?>
            		</td>
          		</tr>
          		<?php

        if (count($lists['languages_2'])) {

?>
				<tr>
            		<td>
              			<?php

            echo _UNOCART_DEFAULT_LANGUAGE;

?>
              			<?php

            echo mosToolTip(_UNOCART_INFO_DEFAULT_LANGUAGE);

?>
            		</td>
            		<td>
              			<?php

            echo $lists['languages_2'];

?>
            		</td>
          		</tr>
          		<?php

        }

?>
          		<tr>
            		<td>
              			<?php

        echo _UNOCART_DEFAULT_ORDER_STATUS;

?>
            		</td>
            		<td>
              			<?php

        echo $lists['status'];

?>
            		</td>
          		</tr>
          		<tr>
            		<td>
              			<?php

        echo _UNOCART_COUNT_PRODUCTS_PAGE;

?>
            		</td>
            		<td>
              			<input type = "text" name = "count_products_to_page" class = "inputbox" id = "count_products_to_page" value = "<?php

        echo $unocartConfig->count_products_to_page;

?>" />
            		</td>
          		</tr>
          		<tr>
            		<td>
              			<?php

        echo _UNOCART_COUNT_PRODUCTS_ROW;

?>
            		</td>
            		<td>
              			<input type = "text" name = "count_products_to_row" class = "inputbox" id = "count_products_to_row" value = "<?php

        echo $unocartConfig->count_products_to_row;

?>" />
            		</td>
          		</tr>
		        <tr>
		            <td>
		              	<?php

        echo _UNOCART_COUNT_CATEGORY_ROW;

?>
		            </td>
		            <td>
		              	<input type = "text" name = "count_category_to_row" class = "inputbox" id = "count_category_to_row" value = "<?php

        echo $unocartConfig->count_category_to_row;

?>" />
		            </td>
		        </tr>
		        <tr>
		            <td>
		              <?php

        echo _UNOCART_ENABLE_WISHLIST;

?>
		            </td>
		            <td>
		              <input type = "checkbox" name = "enable_wishlist" class = "inputbox" id = "enable_f_wishlist" value = "1" <?php

        if ($unocartConfig->enable_wishlist)
            echo 'checked = "checked"';

?> />
		            </td>
		        </tr>
		        <tr>
		            <td>
		              <?php

        echo _UNOCART_REMOVE_PRODUCT_FROM_WISHLIST;
        echo mosToolTip(_UNOCART_REMOVE_PRODUCT_FROM_WISHLIST_INFO, _UNOCART_HINT);

?>
		            </td>
		            <td>
		              <input type = "checkbox" name = "remove_prod_f_wishlist" class = "inputbox" id = "remove_prod_f_wishlist" value = "1" <?php

        if ($unocartConfig->remove_prod_f_wishlist)
            echo 'checked = "checked"';

?> />
		            </td>
		        </tr>
		        <tr>
		            <td>
		              <?php

        echo _UNOCART_USE_RABATT_CODE;

?>
		            </td>
		            <td>
		              <input type = "checkbox" name = "use_rabatt_code" id = "use_rabatt_code" value = "1" <?php

        if ($unocartConfig->use_rabatt_code)
            echo 'checked = "checked"';

?> />
		            </td>
		        </tr>
		        <tr>
		            <td>
		              <?php

        echo _UNOCART_ALLOW_REVIEW_PRODUCT;

?>
		            </td>
		            <td>
		              <input type = "checkbox" name = "allow_reviews_prod" id = "allow_reviews_prod" value = "1" <?php

        if ($unocartConfig->allow_reviews_prod)
            echo 'checked = "checked"';

?> />
		            </td>
		        </tr>
		        <tr>
		            <td>
		              <?php

        echo _UNOCART_ALLOW_REVIEW_MANUFACTURER;

?>
		            </td>
		            <td>
		              <input type = "checkbox" name = "allow_reviews_manuf" id = "allow_reviews_manuf" value = "1" <?php

        if ($unocartConfig->allow_reviews_manuf)
            echo 'checked = "checked"';

?> />
		            </td>
		        </tr> 
		        <tr>
		            <td>
		              <?php

        echo _UNOCART_ALLOW_REVIEW_ONLY_REGISTERED;

?>
		            </td>
		            <td>
		              <input type = "checkbox" name = "allow_reviews_only_registered" id = "allow_reviews_only_registered" value = "1" <?php

        if ($unocartConfig->allow_reviews_only_registered)
            echo 'checked = "checked"';

?> />
		            </td>
		        </tr> 
		        <tr>
		            <td>
		              <?php

        echo _UNOCART_REVIEW_MAX_MARK;

?>
		            </td>
		            <td>
		              <input type = "text" name = "max_mark" id = "max_mark" value = "<?php

        echo $unocartConfig->max_mark;

?>" />
		            </td>
		        </tr> 
				<tr>
		            <td>
		              <?php

        echo _UNOCART_SPECIAL_TYPE_SHOP;

?>
		            </td>
		            <td>
		              <?php

        echo $lists['shop_special_type'];

?>
		            </td>
		        </tr>
		
				<tr>
		            <td>
		              <?php

        echo _UNOCART_NULL_SIHPPING;

?>
		            </td>
		            <td>
		              <input type = "text" name = "summ_null_shipping" value = "<?php

        echo $unocartConfig->summ_null_shipping;

?>" />
		              <?php

        echo mosToolTip(_UNOCART_NULL_SIHPPING_INFO);

?>
		            </td>
		        </tr>
		        <tr>
					<td>
						<?php

        echo _UNOCART_WITHOUT_SHIPPING;

?>
					</td>
					<td>
						<input type = "checkbox" id = "without_shipping" name = "without_shipping" value = "1" <?php

        if ($unocartConfig->without_shipping)
            echo 'checked = "checked"';

?> />
					</td>
				</tr>
          		<tr>
		  			<td>
					</td>
		  		</tr>	
			</table>
		<?php

        HTML_UNOCART::endFormConfig();
    }

    function showConfigTab2($unocartConfig, $lists)
    {
        mosCommonHTML::loadOverlib();
        HTML_UNOCART::startFormConfig();

?>
	        <table width = "50%" >
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_MAIN_CURRENCY;

?>
	            </td>
	            <td>
	              <?php

        echo $lists['currencies'];

?>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_DECIMAL_COUNT;
        echo mosToolTip(_UNOCART_DECIMAL_COUNT_DESCRIPTION, _UNOCART_HINT);

?>
	            <td>
	              <input type = "text" name = "decimal_count" id = "decimal_count" value  = "<?php

        echo $unocartConfig->decimal_count;

?>" />
	            </td>
	            <td>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_DECIMAL_SYMBOL;
        echo mosToolTip(_UNOCART_DECIMAL_SYMBOL_DESCRIPTION, _UNOCART_HINT);

?>
	            <td>
	              <input type = "text" name = "decimal_symbol" id = "decimal_symbol" value  = "<?php

        echo $unocartConfig->decimal_symbol;

?>" />
	            </td>
	            <td>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_THOUSAND_SEPARATOR;
        echo mosToolTip(_UNOCART_THOUSAND_SEPARATOR_DESCRIPTION, _UNOCART_HINT);

?>
	            <td>
	              <input type = "text" name = "thousand_separator" id = "thousand_separator" value  = "<?php

        echo $unocartConfig->thousand_separator;

?>" />
	            </td>
	            <td>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_CURRENCY_FORMAT;
        echo mosToolTip(_UNOCART_CURRENCY_FORMAT_DESCRIPTION, _UNOCART_HINT);

?>
	            <td>
	              <?php

        echo $lists['format_currency'];

?>
	            </td>
	            <td>
	            </td>
	          </tr>
	        </table>
		<?php

        HTML_UNOCART::endFormConfig();
    }

    function showConfigTab3($unocartConfig, $lists)
    {
        mosCommonHTML::loadOverlib();
        HTML_UNOCART::startFormConfig();

?>
        	<table width = "50%" >
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_CATEGORY_WIDTH;

?>
	            </td>
	            <td width = "130">
	              <input type = "text" name = "image_category_width" id = "image_category_width" value  = "<?php

        echo $unocartConfig->image_category_width;

?>" />
	            </td>
	            <td width = "100">
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_CATEGORY_HEIGHT;

?>
	            </td>
	            <td>
	              <input type = "text" name = "image_category_height" id = "image_category_height" value  = "<?php

        echo $unocartConfig->image_category_height;

?>" />
	            </td>
	            <td>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_PRODUCT_THUMB_WIDTH;

?>
	            </td>
	            <td>
	              <input type = "text" name = "image_product_width" id = "image_product_width" value  = "<?php

        echo $unocartConfig->image_product_width;

?>" />
	            </td>
	            <td>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_PRODUCT_THUMB_HEIGHT;

?>
	            </td>
	            <td>
	              <input type = "text" name = "image_product_height" id = "image_product_height" value  = "<?php

        echo $unocartConfig->image_product_height;

?>" />
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_PRODUCT_FULL_WIDTH;
        echo mosToolTip(_UNOCART_IMAGE_SIZE_INFO);

?>
	            </td>
	            <td>
	              <input type = "text" name = "image_product_full_width" id = "image_product_full_width" value  = "<?php

        echo $unocartConfig->image_product_full_width;

?>" />
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_PRODUCT_FULL_HEIGHT;
        echo mosToolTip(_UNOCART_IMAGE_SIZE_INFO);

?>
	            </td>
	            <td>
	              <input type = "text" name = "image_product_full_height" id = "image_product_full_height" value  = "<?php

        echo $unocartConfig->image_product_full_height;

?>" />
	            </td>
	            <td>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_CATEGORY_PATH;

?>
	            </td>
	            <td>
	              <?php

        $span_1 = (is_writeable($unocartConfig->image_category_path)) ? ('<span id = "span_1" class = "unocart_green">' .
            _UNOCART_WRITEABLE . '</span>') : ('<span id = "span_1" class = "unocart_red">' .
            _UNOCART_NON_WRITEABLE . '</span>');
        $span_2 = (is_writeable($unocartConfig->image_product_path)) ? ('<span id = "span_2" class = "unocart_green">' .
            _UNOCART_WRITEABLE . '</span>') : ('<span id = "span_2" class = "unocart_red">' .
            _UNOCART_NON_WRITEABLE . '</span>');
        $span_3 = (is_writeable($unocartConfig->video_product_path)) ? ('<span id = "span_3" class = "unocart_green">' .
            _UNOCART_WRITEABLE . '</span>') : ('<span id = "span_3" class = "unocart_red">' .
            _UNOCART_NON_WRITEABLE . '</span>');
        $span_4 = (is_writeable($unocartConfig->image_manufs_path)) ? ('<span id = "span_4" class = "unocart_green">' .
            _UNOCART_WRITEABLE . '</span>') : ('<span id = "span_4" class = "unocart_red">' .
            _UNOCART_NON_WRITEABLE . '</span>');

?>
	              <input type = "text" name = "image_category_path" id = "image_category_path" value = "<?php

        echo Jstring::str_ireplace($unocartConfig->path, "", $unocartConfig->
            image_category_path);

?>" onblur = "checkDirectory('span_1', this.value)" />
	            <td>
	              <?php

        echo $span_1;

?>
	            </td>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_PRODUCT_PATH;

?>
	            </td>
	            <td>
	              <input type = "text" name = "image_product_path" id = "image_product_path" value = "<?php

        echo Jstring::str_ireplace($unocartConfig->path, "", $unocartConfig->
            image_product_path);

?>" onblur = "checkDirectory('span_2', this.value)" />
	            </td>
	            <td>
	              <?php

        echo $span_2;

?>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_VIDEO_PRODUCT_PATH;

?>
	            </td>
	            <td>
	              <input type = "text" name = "video_product_path" id = "video_product_path" value = "<?php

        echo Jstring::str_ireplace($unocartConfig->path, "", $unocartConfig->
            video_product_path);

?>" onblur = "checkDirectory('span_3', this.value)" />
	            </td>
	            <td>
	              <?php

        echo $span_3;

?>
	            </td>
	          </tr>
	          <tr>
	            <td>
	              <?php

        echo _UNOCART_IMAGE_MANUFS_PATH;

?>
	            </td>
	            <td>
				  <input type = "text" name = "image_manufs_path" id = "image_manufs_path" value = "<?php

        echo Jstring::str_ireplace($unocartConfig->path, "", $unocartConfig->
            image_manufs_path);

?>" onblur = "checkDirectory('span_4', this.value)" />
	            </td>
	            <td>
	              <?php

        echo $span_4;

?>
	            </td>
	          </tr>
	        </table>
		<?php

        HTML_UNOCART::endFormConfig();
    }

    function showConfigTab4($unocartConfig, $lists)
    {
        mosCommonHTML::loadOverlib();
        HTML_UNOCART::startFormConfig();
        $tabs = new mosJTabs(0);
        $tabs->startPane('content-pane');
        foreach ($lists['descr'] as $key => $value) {
            $tabs->startTab(_UNOCART_MAIN_PAGE_PARAMETERS . '<img border = "0" src = "' .
                JPATH_SITE . '/administrator/components/com_unocart/images/flags/' . shortLang($value->
                language) . '.gif" />', shortLang($value->language) . '-page');

?>
		         <table width = "100%" >
		           <tr>
		             <td align = "right">
		               <?php

            echo _UNOCART_MAIN_PAGE_TEXT;

?>
		             </td>
		             <td>
		               <?php

            editorArea('editor1', $value->description, 'description[' . $value->language .
                ']', '100%;', '350', '75', '20');

?>
		             </td>
		           </tr>
		           <tr>
		             <td align = "right">
		               <?php

            echo _UNOCART_META_TITLE;

?>
		             </td>
		             <td>
		               <input type = "text" class = "inputbox" size = "50" name = "meta_title[<?php

            echo $value->language;

?>]" value = "<?php

            echo $value->meta_title;

?>" />
		             </td>
		           </tr>
		           <tr>
		             <td align = "right">
		               <?php

            echo _UNOCART_META_DESCRIPTION;

?>
		             </td>
		             <td>
		               <input type = "text" class = "inputbox" size = "50" name = "meta_description[<?php

            echo $value->language;

?>]" value = "<?php

            echo $value->meta_description;

?>" />
		             </td>
		           </tr>
		           <tr>
		             <td align = "right">
		               <?php

            echo _UNOCART_META_KEYWORDS;

?>
		             </td>
		             <td>
		               <input type = "text" class = "inputbox" size = "50" name = "meta_keyword[<?php

            echo $value->language;

?>]" value = "<?php

            echo $value->meta_keyword;

?>" />
		             </td>
		           </tr>
		           <tr>
                     <td colspan = "2">
                       <hr />
                       <hr />
                     </td>
		           </tr>
		           <tr>
		             <td align = "right">
		               <?php

            echo _UNOCART_AGB;

?>
		             </td>
		             <td>
		               <?php

            editorArea('editor1', $value->agb, 'agb[' . $value->language . ']', '100%;',
                '350', '75', '20');

?>
		             </td>
		           </tr>
		           <tr>
		             <td align = "right">
		               <?php

            echo _UNOCART_RETURN_POLICY;

?>
		             </td>
		             <td>
		               <?php

            editorArea('editor1', $value->return_policy, 'return_policy[' . $value->
                language . ']', '100%;', '350', '75', '20');

?>
		             </td>
		           </tr>
		         </table>
	           <?php

            $tabs->endTab();
        }
        $tabs->endPane();
        HTML_UNOCART::endFormConfig();
    }

    function showConfigTab5($unocartConfig, $lists)
    {
        mosCommonHTML::loadOverlib();
        HTML_UNOCART::startFormConfig();

?>
	
         <table width = "100%" >
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_NAME;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_name" id = "store_name"  value = "<?php

        echo $unocartConfig->store_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_COMPANY;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_company_name" id = "store_company_name"  value = "<?php

        echo $unocartConfig->store_company_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_URL;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_url" id = "store_url"  value = "<?php

        echo $unocartConfig->store_url;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_ADRESS;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_address" id = "store_address"  value = "<?php

        echo $unocartConfig->store_address;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_CITY;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_city" id = "store_city"  value = "<?php

        echo $unocartConfig->store_city;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_ZIP;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_zip" id = "store_zip"  value = "<?php

        echo $unocartConfig->store_zip;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_STATE;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_state" id = "store_state"  value = "<?php

        echo $unocartConfig->store_state;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_COUNTRY;

?>
             </td>
             <td>
               <?php

        echo $lists['countries'];

?>
             </td>
           </tr>
<!--
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_ADRESS_FORMAT;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_address_format" id = "store_address_format"  value = "<?php

        echo $unocartConfig->store_address_format;

?>" />
             </td>
           </tr>
-->
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_STORE_DATE_FORMAT;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "store_date_format" id = "store_date_format"  value = "<?php

        echo $unocartConfig->store_date_format;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right" style = "padding-top:40px">
               <b><?php

        echo _UNOCART_CONTACT_INFO;

?></b>
             </td>
             <td>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CONTACT_FIRSTNAME;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "contact_firstname" id = "contact_firstname"  value = "<?php

        echo $unocartConfig->contact_firstname;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CONTACT_LASTNAME;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "contact_lastname" id = "contact_lastname"  value = "<?php

        echo $unocartConfig->contact_lastname;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CONTACT_MIDDLENAME;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "contact_middlename" id = "contact_middlename"  value = "<?php

        echo $unocartConfig->contact_middlename;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CONTACT_PHONE;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "contact_phone" id = "contact_phone"  value = "<?php

        echo $unocartConfig->contact_phone;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CONTACT_FAX;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "contact_fax" id = "contact_fsx"  value = "<?php

        echo $unocartConfig->contact_fax;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CONTACT_EMAIL;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "contact_email" id = "contact_email"  value = "<?php

        echo $unocartConfig->contact_email;

?>" />
             </td>
           </tr>
           <tr>
             <td style = "padding-top:40px; text-align:right">
               <b><?php

        echo _UNOCART_BENEF_BANK_INFO;

?></b>
             </td>
             <td>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_BENEF_BANK_INFO;

?>
             </td>
             <td>
               <textarea name = "benef_bank_info" id = "benef_bank_info"><?php

        echo $unocartConfig->benef_bank_info;

?></textarea>
             </td>
           </tr>

           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_BENEF_BIC;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "benef_bic" id = "benef_bic"  value = "<?php

        echo $unocartConfig->benef_bic;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_BENEF_CONTO;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "benef_conto" id = "benef_conto"  value = "<?php

        echo $unocartConfig->benef_conto;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_BENEF_IBAN;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "benef_iban" id = "benef_iban"  value = "<?php

        echo $unocartConfig->benef_iban;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_BENEF_SWIFT;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "benef_swift" id = "benef_swift"  value = "<?php

        echo $unocartConfig->benef_swift;

?>" />
             </td>
           </tr>
           <tr>
             <td style = "padding-top:20px; text-align:right">
               <b><?php

        echo _UNOCART_INTERM_BANK;

?></b>
             </td>
             <td>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_INTERM_NAME;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "interm_name" id = "interm_name"  value = "<?php

        echo $unocartConfig->interm_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_INTERM_SWIFT;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" name = "interm_swift" id = "interm_swift"  value = "<?php

        echo $unocartConfig->interm_swift;

?>" />
             </td>
           </tr>
           <tr>
             <td style = "padding-top:20px; text-align:right">
               <b><?php

        echo _UNOCART_PDF_CONFIG;

?></b>
             </td>
             <td>
             </td>
           </tr>
           <tr>
            <td align = "right">
               <?php

        echo _UNOCART_PDF_HEADER;

?>
               <?php

        echo mosToolTip(_UNOCART_PDF_ONLYJPG);

?>
            </td>
            <td>
                <input type = "file" name = "header" value = "" />
            </td>
           </tr>

           <tr>
            <td align = "right">
               <?php

        echo _UNOCART_IMAGE_WIDTH;

?>
               <?php

        echo mosToolTip(_UNOCART_PDF_INMM);

?>
            </td>
            <td>
                <input type = "text" class = "inputbox" name = "pdf_parameters[pdf_header_width]" value = "<?php

        echo $unocartConfig->pdf_header_width;

?>" />
            </td>
           </tr>
           <tr>
            <td align = "right">
               <?php

        echo _UNOCART_IMAGE_HEIGHT;

?>
               <?php

        echo mosToolTip(_UNOCART_PDF_INMM);

?>
            </td>
            <td>
                <input type = "text" class = "inputbox" name = "pdf_parameters[pdf_header_height]" value = "<?php

        echo $unocartConfig->pdf_header_height;

?>" />
            </td>
           </tr>
           <tr>
            <td colspan = "2" style = "padding-top:15px">

            </td>
           </tr>
           <tr>
            <td align = "right">
               <?php

        echo _UNOCART_PDF_FOOTER;

?>
               <?php

        echo mosToolTip(_UNOCART_PDF_ONLYJPG);

?>
            </td>
            <td>
                <input type = "file" name = "footer" value = "" />
            </td>
           </tr>
           <tr>
            <td align = "right">
               <?php

        echo _UNOCART_IMAGE_WIDTH;

?>
               <?php

        echo mosToolTip(_UNOCART_PDF_INMM);

?>
            </td>
            <td>
                <input type = "text" class = "inputbox" name = "pdf_parameters[pdf_footer_width]" value = "<?php

        echo $unocartConfig->pdf_footer_width;

?>" />
            </td>
           </tr>
           <tr>
            <td align = "right">
               <?php

        echo _UNOCART_IMAGE_HEIGHT;

?>
               <?php

        echo mosToolTip(_UNOCART_PDF_INMM);

?>
            </td>
            <td>
                <input type = "text" class = "inputbox" name = "pdf_parameters[pdf_footer_height]" value = "<?php

        echo $unocartConfig->pdf_footer_height;

?>" />
            </td>
           </tr>
           <tr>
            <td align = "right">
                <a target = "_blank" href = "index3.php?option=com_unocart&act=ajax&task=preview_pdf&no_html=1"><?php

        echo _UNOCART_PDF_PREVIEW;

?></a>
            </td>
            <td>
            </td>
           </tr>
         </table>

		<?php

        HTML_UNOCART::endFormConfig();
    }
    function showConfig($unocartConfig, $lists)
    {

?>
		<table width = "70%" align = "left">
			<tr>
				<td>
					<div id = "cpanel">
					<?php

        quickiconButton('index2.php?option=com_unocart&act=config&tab=1',
            'categories.png', _UNOCART_GENERAL_PARAMETERS);
        quickiconButton('index2.php?option=com_unocart&act=config&tab=2',
            'categories.png', _UNOCART_CURRENCY_PARAMETERS);
        quickiconButton('index2.php?option=com_unocart&act=config&tab=3',
            'categories.png', _UNOCART_IMAGE_VIDEO_PARAMETERS);
        quickiconButton('index2.php?option=com_unocart&act=config&tab=4',
            'categories.png', _UNOCART_MAIN_PAGE_PARAMETERS);
        quickiconButton('index2.php?option=com_unocart&act=config&tab=5',
            'categories.png', _UNOCART_STORE_INFO);
        quickiconButton('index2.php?option=com_unocart&act=currencies', 'categories.png',
            _UNOCART_PANEL_CURRENCIES);
        quickiconButton('index2.php?option=com_unocart&act=taxes', 'categories.png',
            _UNOCART_PANEL_TAXES);
        quickiconButton('index2.php?option=com_unocart&act=payments', 'categories.png',
            _UNOCART_PANEL_PAYMENTS);
        quickiconButton('index2.php?option=com_unocart&act=shippings', 'categories.png',
            _UNOCART_PANEL_SHIPPINGS);
        quickiconButton('index2.php?option=com_unocart&act=order_status',
            'categories.png', _UNOCART_PANEL_ORDER_STATUS);
        quickiconButton('index2.php?option=com_unocart&act=countries', 'categories.png',
            _UNOCART_PANEL_COUNTRIES);
        quickiconButton('index2.php?option=com_unocart&act=attributes', 'categories.png',
            _UNOCART_PANEL_ATTRIBUTES);
        quickiconButton('index2.php?option=com_unocart&act=usergroups', 'categories.png',
            _UNOCART_PANEL_USERGROUPS);

?>
					</div>
				</td>
			</tr>
		</table>
		<?php

    }

    function editCategory($row, $descr, $lists, $edit)
    {
        global $mosConfig_live_site, $unocartConfig;
        mosCommonHTML::loadOverlib();

?>
        <form action = "index2.php" method = "post" enctype = "multipart/form-data" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_CATEGORY) : (_UNOCART_NEW_CATEGORY);
?>
            </th>
          </tr>
        </table>
       <?php

        $tabs = new mosJTabs(0);
        $tabs->startPane('content-pane');
        $tabs->startTab(_UNOCART_MAIN_PARAMETERS, 'main-page');

?>
         <table width = "100%" >
           <tr>
             <td align = "right" width = "200">
               <?php

        echo _UNOCART_PUBLISH;

?>
             </td>
             <td>
               <input type = "checkbox" name = "category_publish" value = "1" <?php

        if ($row->category_publish or !$edit)
            echo 'checked = "checked"';

?> />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_ORDERING_CATEGORY;

?>
             </td>
             <td id = "ordering">
               <?php

        echo $lists['onelevel'];

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_ORDERINGTYPE_CATEGORY;

?>
             </td>
             <td id = "ordering">
               <?php

        echo $lists['orderingtype'];

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_TEMPLATE_CATEGORY;

?>
             </td>
             <td>
               <?php

        echo $lists['templates'];

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_COUNT_PRODUCTS_PAGE;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "products_page" name = "products_page" value = "<?php

        echo $count_product_page = ($edit) ? ($row->products_page) : ($unocartConfig->
            count_products_to_page);

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_COUNT_PRODUCTS_ROW;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "products_row" name = "products_row" value = "<?php

        echo $count_product_row = ($edit) ? ($row->products_row) : ($unocartConfig->
            count_products_to_row);

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_PARENT_CATEGORY;

?>
             </td>
             <td>
               <?php

        echo $lists['treecategories'];

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_PRODUCT_SORTING;

?>
             </td>
             <td>
               <?php

        echo $lists['product_sorting'];

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_PRODUCT_SORTING2;

?>
             </td>
             <td>
               <?php

        echo $lists['product_sorting2'];

?>
             </td>
           </tr>
         </table>
       <?php

        $tabs->endTab();
        $tabs->startTab(_UNOCART_IMAGE, 'image');

?>
         <div class = "unocart_quote">
            <?php

        echo $lists['writeable'];

?>
         </div>
         <br />
         <div class = "unocart_quote">
            <?php

        if ($row->category_image) {

?>
              <img src = "<?php

            echo $unocartConfig->image_category_live_path . '/' . $row->category_image;

?>" />
            <?php

        }

?>
         </div>
         <table width = "50%" >
           <tr>
             <td>
               <?php

        echo _UNOCART_IMAGE_SELECT;

?>
             </td>
             <td>
               <input type = "file" name = "category_image" />
             </td>
           </tr>
           <tr>
             <td>
               <?php

        echo _UNOCART_IMAGE_THUMB_SIZE;

?>
             </td>
             <td>
               <input type = "radio" name = "size_im_category" id = "size_1" checked = "checked" onclick = "setDefaultSize(<?php

        echo $unocartConfig->image_category_width;

?>,<?php

        echo $unocartConfig->image_category_height;

?>, 'category')" value = "1" />
               <label for = "size_1"><?php

        echo _UNOCART_IMAGE_SIZE_1;

?></label><br />
               <input type = "radio" name = "size_im_category" value = "3" id = "size_3" onclick = "setOriginalSize('category')" value = "3"/>
               <label for = "size_3"><?php

        echo _UNOCART_IMAGE_SIZE_3;

?></label><br />
               <input type = "radio" name = "size_im_category" id = "size_2" onclick = "setManualSize('category')" value = "2" />
               <label for = "size_2"><?php

        echo _UNOCART_IMAGE_SIZE_2;

?></label><?php

        echo mosToolTip(_UNOCART_IMAGE_SIZE_INFO);

?>
             </td>
           </tr>
           <tr>
             <td>
               <?php

        echo _UNOCART_IMAGE_WIDTH;

?>
             </td>
             <td>
               <input type = "text" id = "category_width_image" name = "category_width_image" value = "<?php

        echo $unocartConfig->image_category_width;

?>" disabled = "disabled" />
             </td>
           </tr>
           <tr>
             <td>
               <?php

        echo _UNOCART_IMAGE_HEIGHT;

?>
             </td>
             <td>
               <input type = "text" id = "category_height_image" name = "category_height_image" value = "<?php

        echo $unocartConfig->image_category_height;

?>" disabled = "disabled" />
               <input type = "hidden" name = "category_image" value = "<?php

        echo $row->category_image;

?>" />
             </td>
           </tr>
         </table>
       <?php

        $tabs->endTab();
        foreach ($descr as $key => $value) {
            $tabs->startTab($value->language .
                ' <img class = "tab_image" border = "0" src = "' . $mosConfig_live_site .
                '/administrator/components/com_unocart/images/flags/' . shortLang($value->
                language) . '.gif" />', shortLang($value->language) . '-page');

?>
         <table width = "100%"  class = "adminForm">
           <tr>
             <td align = "right" width = "20%">
               <?php

            echo _UNOCART_CATEGORY_NAME;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "50" name = "category_name[<?php

            echo $value->language;

?>]" value = "<?php

            if ($edit)
                echo $value->category_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

                echo _UNOCART_CATEGORY_DESCRIPTION;

?>
             </td>
             <td>
               <?php

            $editorText = ($edit) ? ($value->category_description) : ("");
            editorArea('editor1', $editorText, 'category_description[' . $value->language .
                ']', '100%;', '350', '75', '20');

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_CATEGORY_META_TITLE;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "160" name = "category_meta_title[<?php

            echo $value->language;

?>]" value = "<?php

            if ($edit)
                echo $value->category_meta_title;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

                echo _UNOCART_CATEGORY_META_DESCRIPTION;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "160" name = "category_meta_description[<?php

            echo $value->language;

?>]" value = "<?php

            if ($edit)
                echo $value->category_meta_description;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

                echo _UNOCART_CATEGORY_META_KEYWORD;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "160" name = "category_meta_keyword[<?php

            echo $value->language;

?>]" value = "<?php

            if ($edit)
                echo $value->category_meta_keyword;

?>" />
             </td>
           </tr>
         </table>
         <?php

                $tabs->endTab();
        }
        $tabs->endPane();

?>
       <input type = "hidden" name = "option" value = "com_unocart" />
       <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act');

?>" />
       <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task');

?>" />
       <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
       <?php

        if ($row->category_id) {

?>
          <input type = "hidden" name = "catid" value = "<?php

            echo $row->category_id;

?>" />
          <input type = "hidden" name = "category_id" value = "<?php

            echo $row->category_id;

?>" />
       <?php

        }

?>
       <input type = "hidden" name = "parentid" value = "<?php

        echo $lists['parentid'];

?>" />
       <script type = "text/javascript">
         function submitbutton(pressbutton){
			if (pressbutton == 'save' || pressbutton == 'apply'){
				if (!parseInt($F_('products_page'))){
                   alert ('<?php

        echo html_entity_decode(_UNOCART_WRITE_PRODUCTS_PAGE, ENT_QUOTES, $unocartConfig->
            charset);

?>');
         		} else if (!parseInt($F_('products_row'))){
                   alert ('<?php

        echo html_entity_decode(_UNOCART_WRITE_PRODUCTS_ROW, ENT_QUOTES, $unocartConfig->
            charset);

?>');
                } else if (isEmpty($F_('category_width_image')) && isEmpty($F_('category_height_image'))){
                   alert ('<?php

        echo html_entity_decode(_UNOCART_WRITE_SIZE_BAD, ENT_QUOTES, $unocartConfig->
            charset);

?>');
         		} else {
         			$_('category_width_image').disabled = false;
                    $_('category_height_image').disabled = false;
         			submitform(pressbutton);
         		}
         	} else {
         	   	submitform(pressbutton);
         	}
         }
       </script>
       </form>
       <?php

    }

    function showTreeCategories($categories, $lists)
    {
        $current_cat = mosGetParam($_REQUEST, 'catid');
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" enctype = "multipart/form-data" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_TREE_CATEGORY;

?>
            </th>
          </tr>
        </table>
        <table width = "100%">
          <tr>
            <td align = "right">
              <?php

        echo $lists['treecategories'];

?>
            </td>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo count($categories);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_CATEGORY_NAME;

?>
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_CATEGORY_DESCRIPTION;

?>
            </th>
            <th width = "100" align = "left">
              <?php

        echo _UNOCART_CATEGORY_PRODUCTS;

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th colspan = "2" width = "40">
              <?php

        echo _UNOCART_ORDERING;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        $count = count($categories);
        foreach ($categories as $category) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i;

?>" value = "<?php

            echo $category->category_id;

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_CATEGORY;

?>" href = "index2.php?option=com_unocart&act=categories&task=edit&catid=<?php

            echo $category->category_id;

?>"><?php

            echo $category->category_name;

?>&nbsp;<img src = "<?php

            echo $mosConfig_live_site;

?>/administrator/components/com_unocart/images/edit.gif" border = "0" /></a>
             <a title = "<?php

            echo _UNOCART_CHILD_CATEGORIES;

?>" href = "index2.php?option=com_unocart&act=categories&catid=<?php

            echo $category->category_id;

?>"><img src = "<?php

            echo $mosConfig_live_site;

?>/administrator/components/com_unocart/images/tree.gif" border = "0" /></a>
           </td>
           <td>
             <?php

            echo $category->category_description;

?>
           </td>
           <td>
             <a href = "index2.php?option=com_unocart&act=products&current_cat=<?php

            echo $category->category_id;

?>">
               <?php

            echo _UNOCART_CATEGORY_PRODUCTS;

?>
             </a>
           </td>
           <td>
             <?php

            echo $published = ($category->category_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i . '\', \'publish\')"><img width="12" height="12" title = "' .
                _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           </td>
           <td align = "right" width = "20">
            <?php

            if ($i != 0)
                echo '<a href = "index2.php?option=com_unocart&act=categories&task=order&id=' .
                    $category->category_id . '&order=up&number=' . $category->category_ordering .
                    '&catid=' . $current_cat . '"><img width="12" height="12" border="0" alt="' .
                    _UNOCART_UP . '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20"> 
              <?php

            if ($i++ != $count - 1)
                echo '<a href = "index2.php?option=com_unocart&act=categories&task=order&id=' .
                    $category->category_id . '&order=down&number=' . $category->category_ordering .
                    '&catid=' . $current_cat . '"><img width="12" height="12" border="0" alt="' .
                    _UNOCART_DOWN . '" src="images/downarrow.png"/></a>';

?>
           </td>
           <td>
           </td>
          </tr>
          <?php

        }

?>
        </table>
        <input type = "hidden" name = "act" value = "categories" />
        <input type = "hidden" name = "task" value = "" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "parentid" value = "<?php

        if ($parentid = mosGetParam($_GET, 'catid', 0))
            echo $parentid;
        else
            echo mosGetParam($_REQUEST, 'parentid', 0);

?>" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }
    /*    function editLanguage($row, $lists, $edit){
    ?>
    <form action = "index2.php" method = "post"name = "adminForm">
    <table class = "adminheading">
    <tr>
    <th>
    <?php echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_LANGUAGE) : (_UNOCART_NEW_LANGUAGE) ;?>
    </th>
    </tr>
    </table>
    <table width = "50%" align = "left" class = "unocart_border">
    <tr>
    <td align = "right" width = "30%">
    <?php echo _UNOCART_PUBLISH;?>
    </td>
    <td>
    <input type = "checkbox" name = "language_publish" value = "1" <?php if ($row->language_publish) echo 'checked = "checked"'?> />
    </td>
    </tr>
    <tr>
    <td align = "right">
    <?php echo _UNOCART_ORDERING_LANGUAGE;?>
    </td>
    <td id = "ordering">
    <?php echo $lists['order_languages']?>
    </td>
    </tr>
    <tr>
    <td align = "right">
    <?php echo _UNOCART_NAME_LANGUAGE;?>
    </td>
    <td>
    <input type = "text" class = "inputbox" id = "language_name" name = "language_name" value = "<?php echo $row->language_name;?>" />
    </td>
    </tr>
    <tr>
    <td align = "right">
    <?php echo _UNOCART_CODE_LANGUAGE;?>
    </td>
    <td>
    <input type = "text" class = "inputbox" id = "language_code" name = "language_code" value = "<?php echo $row->language_code;?>" />
    </td>
    </tr>
    </table>
    <input type = "hidden" name = "option" value = "com_unocart" />
    <input type = "hidden" name = "act" value = "<?php echo mosGetParam($_REQUEST,'act')?>" />
    <input type = "hidden" name = "task" value = "<?php echo mosGetParam($_REQUEST,'task')?>" />
    <input type = "hidden" name = "edit" value = "<?php echo $edit;?>" />
    <?php if ($edit) {?>
    <input type = "hidden" name = "language_id" value = "<?php echo $row->language_id?>" />
    <?php }?>
    </form>
    <?php
    }

    function showLanguages($languages){
    global $mosConfig_live_site;
    $i = 0;
    ?>
    <form action = "index2.php" method = "post" name = "adminForm">
    <table class = "adminheading">
    <tr>
    <th>
    <?php echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_LANGUAGE ;?>
    </th>
    </tr>
    </table>
    <table class = "adminlist" width = "70%">
    <tr>
    <th class = "title" width  = "10">
    #
    </th>
    <th width = "20">
    <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count( $languages );?>);" />
    </th>
    <th width = "200" align = "left">
    <?php echo _UNOCART_NAME_LANGUAGE;?>
    </th>
    <th width = "30">
    <?php echo _UNOCART_PUBLISH;?>
    </th>
    <th colspan = "2" width = "40">
    <?php echo _UNOCART_ORDERING?>
    </th>
    <th>
    </th>
    </tr>
    <?php
    $count = count($languages);
    foreach($languages as $language){
    ?>
    <tr class = "row<?php echo $i % 2;?>">
    <td>
    <?php echo $i+1;?>
    </td>
    <td>
    <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php echo $i;?>" value = "<?php echo $language->language_id?>" />
    </td>
    <td>
    <a title = "<?php echo _UNOCART_EDIT_LANGUAGE;?>" href = "index2.php?option=com_unocart&act=languages&task=edit&language_id=<?php echo $language->language_id; ?>"><?php echo $language->language_name;?>&nbsp;<img src = "<?php echo $mosConfig_live_site?>/administrator/components/com_unocart/images/edit.gif" border = "0" /></a>
    </td>
    <td>
    <?php
    echo $published = ($language->language_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' . $i . '\', \'unpublish\')"><img width="12" height="12" title = "' . _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' . $i . '\', \'publish\')"><img width="12" height="12" title = "' . _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');
    ?>
    </td>
    <td align = "right">
    <?php
    if ($i != 0) echo '<a href = "index2.php?option=com_unocart&act=languages&task=order&id=' . $language->language_id . '&order=up&number=' . $language->language_ordering . '"><img width="12" height="12" border="0" alt="' . _UNOCART_UP . '" src="images/uparrow.png"/></a>';
    ?>
    </td>
    <td align = "left">
    <?php
    if ($i++ != $count - 1) echo '<a href = "index2.php?option=com_unocart&act=languages&task=order&id=' . $language->language_id . '&order=down&number=' . $language->language_ordering . '"><img width="12" height="12" border="0" alt="' . _UNOCART_DOWN . '" src="images/downarrow.png"/></a>';
    ?>
    </td>
    <td>
    </td>
    </tr>
    <?
    }
    ?>
    </table>
    <input type = "hidden" name = "act" value = "<?php echo mosGetParam($_REQUEST,'act', 0)?>" />
    <input type = "hidden" name = "task" value = "<?php echo mosGetParam($_REQUEST,'task', 0)?>" />
    <input type = "hidden" name = "option" value = "com_unocart" />
    <input type = "hidden" name = "hidemainmenu" value = "0" />
    <input type = "hidden" name = "boxchecked" value = "0" />
    </form>
    <?php
    }
    */
    function showCurrencies($currencies)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_CURRENCY;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo count($currencies);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_CURRENCY;

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th colspan = "2" width = "40">
              <?php

        echo _UNOCART_ORDERING;

?>
            </th>
            <th width = "60">
				<?php

        echo _UNOCART_VALUE_CURRENCY;

?>	
			</th>
            <th>
            </th>
          </tr>
       <?php

        $count = count($currencies);
        foreach ($currencies as $currency) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i;

?>" value = "<?php

            echo $currency->currency_id;

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_CURRENCY;

?>" href = "index2.php?option=com_unocart&act=currencies&task=edit&currency_id=<?php

            echo $currency->currency_id;

?>"><?php

            echo $currency->currency_name;

?>&nbsp;<img src = "<?php

            echo $mosConfig_live_site;

?>/administrator/components/com_unocart/images/edit.gif" border = "0" /></a>
           </td>
           <td>
             <?php

            echo $published = ($currency->currency_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i . '\', \'publish\')"><img width="12" height="12" title = "' .
                _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           </td>
           <td align = "right" width = "20">
            <?php

            if ($i != 0)
                echo '<a href = "index2.php?option=com_unocart&act=currencies&task=order&id=' .
                    $currency->currency_id . '&order=up&number=' . $currency->currency_ordering .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_UP .
                    '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20">
              <?php

            if ($i++ != $count - 1)
                echo '<a href = "index2.php?option=com_unocart&act=currencies&task=order&id=' .
                    $currency->currency_id . '&order=down&number=' . $currency->currency_ordering .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_DOWN .
                    '" src="images/downarrow.png"/></a>';

?>
           </td>
           <td align = "center">
		   	<?php

            echo $currency->currency_value;

?>
		   </td>
           <td>
           </td>
          </tr>
          <?php

        }

?>
        </table>
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act', '');

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', '');

?>" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }

    function editCurrency($row, $lists, $edit)
    {

?>
        <form action = "index2.php" method = "post"name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php
        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_CURRENCY) : (_UNOCART_NEW_CURRENCY);
?>
            </th>
          </tr>
        </table>
        <table width = "50%"  class = "unocart_border">
           <tr>
             <td align = "right" width = "30%">
               <?php

        echo _UNOCART_PUBLISH;

?>
             </td>
             <td>
               <input type = "checkbox" name = "currency_publish" value = "1" <?php

        if ($row->currency_publish)
            echo 'checked = "checked"';

?> />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_ORDERING_CURRENCY;

?>
             </td>
             <td id = "ordering">
               <?php

        echo $lists['order_currencies'];

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_NAME_CURRENCY;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "currency_name" name = "currency_name" value = "<?php

        echo $row->currency_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CODE_CURRENCY;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "currency_code" name = "currency_code" value = "<?php

        echo $row->currency_code;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_VALUE_CURRENCY;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "currency_value" name = "currency_value" value = "<?php

        echo $row->currency_value;

?>" />
             </td>
           </tr>
         </table>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act');

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task');

?>" />
        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
        <?php

        if ($edit) {

?>
          <input type = "hidden" name = "currency_id" value = "<?php

            echo $row->currency_id;

?>" />
        <?php

        }

?>
        </form>
    	<?php

    }

    function showCountries($countries, $pageNav)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_COUNTRY;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo count($countries);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_COUNTRY;

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th colspan = "2" width = "40">
              <?php

        echo _UNOCART_ORDERING;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        $count = count($countries);
        foreach ($countries as $country) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $pageNav->rowNumber($i);

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i;

?>" value = "<?php

            echo $country->country_id;

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_COUNTRY;

?>" href = "index2.php?option=com_unocart&act=countries&task=edit&country_id=<?php

            echo $country->country_id;

?>"><?php

            echo $country->country_name;

?>&nbsp;<img src = "<?php

            echo $mosConfig_live_site;

?>/administrator/components/com_unocart/images/edit.gif" border = "0" /></a>
           </td>
           <td>
             <?php

            echo $published = ($country->country_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i . '\', \'publish\')"><img width="12" height="12" title = "' .
                _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           </td>
           <td align = "right" width = "20">
            <?php

            if ($i != 0)
                echo '<a href = "index2.php?option=com_unocart&act=countries&task=order&id=' . $country->
                    country_id . '&order=up&number=' . $country->country_ordering .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_UP .
                    '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20">
              <?php

            if ($i++ != $count - 1)
                echo '<a href = "index2.php?option=com_unocart&act=countries&task=order&id=' . $country->
                    country_id . '&order=down&number=' . $country->country_ordering .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_DOWN .
                    '" src="images/downarrow.png"/></a>';

?>
           </td>
           <td>
           </td>
          </tr>
          <?php

        }

?>
        </table>
        <?php

        echo $pageNav->getListFooter();

?>
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act', 0);

?>" />
        <input type = "hidden" name = "task" value = "" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }

    function editCountry($row, $lists, $edit)
    {

?>
        <form action = "index2.php" method = "post"name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_COUNTRY) : (_UNOCART_NEW_COUNTRY);

?>
            </th>
          </tr>
        </table>
        <table width = "50%"  class = "unocart_border">
           <tr>
             <td align = "right" width = "30%">
               <?php

        echo _UNOCART_PUBLISH;

?>
             </td>
             <td>
               <input type = "checkbox" name = "country_publish" value = "1" <?php

        if ($row->country_publish)
            echo 'checked = "checked"'

?> />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_ORDERING_COUNTRY;

?>
             </td>
             <td id = "ordering">
               <?php

        echo $lists['order_countries']

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_NAME_COUNTRY;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "country_name" name = "country_name" value = "<?php

        echo $row->country_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CODE_COUNTRY;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "country_code" name = "country_code" value = "<?php

        echo $row->country_code;

?>" />
             </td>
           </tr>
         </table>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
        <?php

        if ($edit) {

?>
          <input type = "hidden" name = "country_id" value = "<?php

            echo $row->country_id

?>" />
        <?php

        }

?>
        </form>
    	<?php

    }


    function showCoupons($coupons)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_COUPONS;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo count($coupons);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_CODE_COUPON;

?>
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_TYPE_COUPON;

?>
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_VALUE_COUPON;

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        $count = count($coupons);
        if ($count)
            foreach ($coupons as $coupon) {

?>
          <tr class = "row<?php

                echo $i % 2;

?>">
           <td>
             <?php

                echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

                echo $i;

?>" value = "<?php

                echo $coupon->coupon_id

?>" />
           </td>
           <td>
             <a title = "<?php

                echo _UNOCART_EDIT_COUPON;

?>" href = "index2.php?option=com_unocart&act=coupons&task=edit&coupon_id=<?php

                echo $coupon->coupon_id;

?>"><?php

                echo $coupon->coupon_code;

?>&nbsp;<img src = "<?php

                echo $mosConfig_live_site

?>/administrator/components/com_unocart/images/edit.gif" border = "0" /></a>
           </td>
           <td>
             <?php

                echo $ret = ($coupon->coupon_type) ? (_UNOCART_COUPON_ABS_VALUE) : (_UNOCART_COUPON_PERCENT)

?>
           </td>
           <td>
             <?php

                echo $coupon->coupon_value;

?>
           </td>
           <td>
             <?php

                echo $published = ($coupon->coupon_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                    $i++ . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                    _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                    $i++ . '\', \'publish\')"><img width="12" height="12" title = "' .
                    _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           </td>
           <td>
           </td>
          </tr>
          <?php

            }

?>
        </table>
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act', '')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', '')

?>" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }


    function editCoupon($row, $lists, $edit)
    {
        mosCommonHTML::loadCalendar();
        mosCommonHTML::loadOverlib();

?>
        <form action = "index2.php" method = "post"name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_COUPON) : (_UNOCART_NEW_COUPON);

?>
            </th>
          </tr>
        </table>
        <table width = "50%"  class = "unocart_border">
           <tr>
             <td align = "right" width = "30%">
               <?php

        echo _UNOCART_PUBLISH;

?>
             </td>
             <td>
               <input type = "checkbox" name = "coupon_publish" value = "1" <?php

        if ($row->coupon_publish)
            echo 'checked = "checked"'

?> />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_CODE_COUPON;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "coupon_code" name = "coupon_code" value = "<?php

        echo $row->coupon_code;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_TYPE_COUPON;

?>
             </td>
             <td>
               <?php

        echo $lists['coupon_type'];
        echo mosToolTip(_UNOCART_COUPON_VALUE_DESCRIPTION, _UNOCART_HINT);

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_VALUE_COUPON;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "coupon_value" name = "coupon_value" value = "<?php

        echo $row->coupon_value;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_START_DATE_COUPON;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "coupon_start_date" name = "coupon_start_date" value = "<?php

        echo $row->coupon_start_date;

?>" />
               <input name="reset" type="reset" class="button" onclick="return showCalendar('coupon_start_date', '%Y-%m-%d');" value="..." />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_EXPIRE_DATE_COUPON;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "coupon_expire_date" name = "coupon_expire_date" value = "<?php

        echo $row->coupon_expire_date;

?>" />
               <input name = "reset" type = "reset" class = "button" onclick = "return showCalendar('coupon_expire_date', '%Y-%m-%d');" value="..." />
             </td>
           </tr>
         </table>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
        <?php

        if ($edit) {

?>
          <input type = "hidden" name = "coupon_id" value = "<?php

            echo $row->coupon_id

?>" />
        <?php

        }

?>
        </form>
    	<?php

    }

    function showPaymentMethods($payments)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_PAYMENTS;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo count($payments);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_PAYMENT;

?>
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_CODE_PAYMENT;

?>
            </th>
            <th width = "40" colspan = "2">
              <?php

        echo _UNOCART_ORDERING;

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        $count = count($payments);
        if ($count)
            foreach ($payments as $payment) {

?>
          <tr class = "row<?php

                echo $i % 2;

?>">
           <td>
             <?php

                echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

                echo $i;

?>" value = "<?php

                echo $payment->payment_id

?>" />
           </td>
           <td>
             <a title = "<?php

                echo _UNOCART_EDIT_PAYMENT;

?>" href = "index2.php?option=com_unocart&act=payments&task=edit&payment_id=<?php

                echo $payment->payment_id;

?>"><?php

                echo $payment->payment_name;

?>&nbsp;<img src = "<?php

                echo $mosConfig_live_site

?>/administrator/components/com_unocart/images/edit.gif" border = "0" /></a>
           </td>
           <td>
             <?php

                echo $payment->payment_code;

?>
           </td>
           <td align = "right" width = "20">
            <?php

                if ($i != 0)
                    echo '<a href = "index2.php?option=com_unocart&act=payments&task=order&id=' . $payment->
                        payment_id . '&order=up&number=' . $payment->payment_ordering .
                        '"><img width="12" height="12" border="0" alt="' . _UNOCART_UP .
                        '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20">
              <?php

                if ($i != $count - 1)
                    echo '<a href = "index2.php?option=com_unocart&act=payments&task=order&id=' . $payment->
                        payment_id . '&order=down&number=' . $payment->payment_ordering .
                        '"><img width="12" height="12" border="0" alt="' . _UNOCART_DOWN .
                        '" src="images/downarrow.png"/></a>';

?>
           </td>
           <td align = "center">
             <?php

                echo $published = ($payment->payment_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                    $i++ . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                    _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                    $i++ . '\', \'publish\')"><img width="12" height="12" title = "' .
                    _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           </td>
           <td>
           </td>
          </tr>
          <?php

            }

?>
        </table>
        <input type = "hidden" name = "act" value = "payments" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }


    function editPaymentMethod($row, $edit, $params, $lists)
    {

?>
        <form action = "index2.php" method = "post"name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_PAYMENT) : (_UNOCART_NEW_PAYMENT);

?>
            </th>
          </tr>
        </table>
       <?php

        $tabs = new mosJTabs(0);
        $tabs->startPane('content-pane');
        $tabs->startTab(_UNOCART_PAYMENT_GENERAL, 'first-tab');
        mosCommonHTML::loadOverlib();

?>
        <table width = "80%"  class = "unocart_border">
           <tr>
             <td align = "right" width = "30%">
               <?php

        echo _UNOCART_PUBLISH;

?>
             </td>
             <td>
               <input type = "checkbox" name = "payment_publish" value = "1" <?php

        if ($row->payment_publish)
            echo 'checked = "checked"'

?> />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_CODE_PAYMENT;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "payment_code" name = "payment_code" value = "<?php

        echo $row->payment_code;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_NAME_PAYMENT;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "payment_name" name = "payment_name" value = "<?php

        echo $row->payment_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_CLASS_PAYMENT;
        echo mosToolTip(_UNOCART_CLASS_PAYMENT_INFO, _UNOCART_HINT);

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "payment_class" name = "payment_class" value = "<?php

        echo $row->payment_class;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_TYPE_PAYMENT;

?>
             </td>
             <td>
               <?php

        echo $lists['type_payment'];

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_DESCRIPTION_PAYMENT;

?>
             </td>
             <td>
               <?php

        editorArea('editor1', $row->payment_description, 'payment_description', '100%;',
            '350', '75', '20');

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_ADD_INFO_PAYMENT;
        echo mosToolTip(_UNOCART_ADD_INFO_PAYMENT_INFO, _UNOCART_HINT);

?>
             </td>
             <td>
               <textarea id = "payment_add_info" name = "payment_add_info" cols = "70" rows = "20"><?php

        echo $row->payment_add_info;

?></textarea>
             </td>
           </tr>
         </table>

         <?php

        $tabs->endTab();
        $tabs->startTab(_UNOCART_PAYMENT_CONFIG, 'second-tab');
        echo $lists['html'];
        $tabs->endTab();
        $tabs->endPane();

?>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
        <?php

        if ($edit) {

?>
          <input type = "hidden" name = "payment_id" value = "<?php

            echo $row->payment_id

?>" />
        <?php

        }

?>
        </form>
    	<?php

    }


    function showShippingMethods($shippings)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>	
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_SHIPPINGS;

?>
            </th>
          </tr>
        </table>
        <table width = "100%">
        	<tr>
				<td align = "center">
					<a href = "index2.php?option=com_unocart&act=shippings_prices"><?php

        echo _UNOCART_SHIPPING_PRICES

?></a>
				</td>
			</tr>
        </table>
        
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo count($shippings);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_SHIPPING;

?>
            </th>
            <th colspan = "2" width = "40">
              <?php

        echo _UNOCART_ORDERING;

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        $count = count($shippings);
        if ($count)
            foreach ($shippings as $shipping) {

?>
          <tr class = "row<?php

                echo $i % 2;

?>">
           <td>
             <?php

                echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

                echo $i;

?>" value = "<?php

                echo $shipping->shipping_id

?>" />
           </td>
           <td>
             <a title = "<?php

                echo _UNOCART_EDIT_SHIPPING;

?>" href = "index2.php?option=com_unocart&act=shippings&task=edit&shipping_id=<?php

                echo $shipping->shipping_id;

?>"><?php

                echo $shipping->shipping_name;

?>&nbsp;<img src = "<?php

                echo $mosConfig_live_site

?>/administrator/components/com_unocart/images/edit.gif" border = "0" /></a>
           </td>
           <td align = "right" width = "20">
            <?php

                if ($i != 0)
                    echo '<a href = "index2.php?option=com_unocart&act=shippings&task=order&id=' . $shipping->
                        shipping_id . '&order=up&number=' . $shipping->shipping_ordering .
                        '"><img width="12" height="12" border="0" alt="' . _UNOCART_UP .
                        '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20">
              <?php

                if ($i != $count - 1)
                    echo '<a href = "index2.php?option=com_unocart&act=shippings&task=order&id=' . $shipping->
                        shipping_id . '&order=down&number=' . $shipping->shipping_ordering .
                        '"><img width="12" height="12" border="0" alt="' . _UNOCART_DOWN .
                        '" src="images/downarrow.png"/></a>';

?>
           </td>
           <td align = "center">
             <?php

                echo $published = ($shipping->shipping_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                    $i++ . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                    _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                    $i++ . '\', \'publish\')"><img width="12" height="12" title = "' .
                    _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           </td>
		   <td>
           </td>
          </tr>
          <?php

            }

?>
        </table>
        <input type = "hidden" name = "act" value = "shippings" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }


    function editShippingMethod($row, $edit)
    {
        mosCommonHTML::loadOverlib();

?>
	        <form action = "index2.php" method = "post" name = "adminForm">
				<table class = "adminheading">
		          	<tr>
		            	<th>
		              		<?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_SHIPPING) : (_UNOCART_NEW_SHIPPING);

?>
		            	</th>
		          	</tr>
		        </table>
		        <table width = "80%"  class = "unocart_border">
		           	<tr>
		             	<td align = "right" width = "30%">
		               		<?php

        echo _UNOCART_PUBLISH;

?>
		             	</td>
		             	<td>
		               		<input type = "checkbox" name = "shipping_publish" value = "1" <?php

        if ($row->shipping_publish)
            echo 'checked = "checked"'

?> />
		             	</td>
		           	</tr>
		           	<tr>
		             	<td align = "right">
		               		<?php

            echo _UNOCART_NAME_SHIPPING;

?>
		             	</td>
		             	<td>
		               		<input type = "text" class = "inputbox" id = "shipping_name" name = "shipping_name" value = "<?php

        echo $row->shipping_name;

?>" />
		             	</td>
		           	</tr>
		           	<tr>
		             	<td align = "right">
		               		<?php

        echo _UNOCART_DESCRIPTION_SHIPPING;

?>
		             	</td>
		             	<td>
		               		<?php

        editorArea('editor1', $row->shipping_description, 'shipping_description',
            '100%;', '350', '75', '20');

?>
		             	</td>
		           	</tr>
		        </table>
		        <input type = "hidden" name = "option" value = "com_unocart" />
		        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
		        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
		        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
		        <?php

        if ($edit) {

?>
		          <input type = "hidden" name = "shipping_id" value = "<?php

            echo $row->shipping_id

?>" />
		        <?php

        }

?>
		    </form>
    	<?php

    }

    function showShippingMethodsPrices($shipping_prices)
    {
        $i = 0;

?>
			<form name = "adminForm" action = "index2.php" method = "post">
				<table class = "adminheading">
					<tr>
						<th>
							<?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_SHIPPING_PRICES_LIST;

?>
						</th>
					</tr>
				</table>
				<table width = "100%">
					<tr>
						<td width = "100%" align = "center">
							<a href = "index2.php?option=com_unocart&act=shippings"><?php

        echo _UNOCART_LIST_SHIPPINGS

?></a>
						</td>
					</tr>
				</table>
				<table class = "adminlist" width = "70%">
		        	<tr class = "row<?php

        echo $i % 2;

?>">
		            	<th class = "title" width  = "10">
		              		#
		            	</th>
		            	<th width = "20">
		    		  		<input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo count($shipping_prices);

?>);" />
		            	</th>
		            	<th width = "200" align = "left">
		              		<?php

        echo _UNOCART_NAME_SHIPPING;

?>
		            	</th>
		            	<th>
		            	</th>
		          	</tr>
		        <?php

        $count = count($shipping_prices);
        if ($count)
            foreach ($shipping_prices as $sh_price) {

?>
		          	<tr>
						<td>
							<?php

                echo $i + 1;

?>
						</td>
						<td>
							<input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

                echo $i++;

?>" value = "<?php

                echo $sh_price->sh_pr_method_id

?>" />
						</td>
						<td>
							<a href = "index2.php?option=com_unocart&act=shippings_prices&task=edit&sh_pr_method_id=<?php

                echo $sh_price->sh_pr_method_id

?>"><?php

                echo $sh_price->shipping_name;

?></a>
						</td>  
					</tr>
					<?php

            }

?>
				</table>
		        <input type = "hidden" name = "act" value = "shippings_prices" />
		        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
		        <input type = "hidden" name = "option" value = "com_unocart" />
		        <input type = "hidden" name = "hidemainmenu" value = "0" />
		        <input type = "hidden" name = "boxchecked" value = "0" />
			</form>
		<?php

    }


    function editShippingMethodPrice($row, $lists)
    {
        global $unocartConfig;
        mosCommonHTML::loadOverlib();

?>
		  <form action = "index2.php" method = "post" name = "adminForm">
		  <table>
		   <tr>
		   	<td align = "right">
				<?php

        echo _UNOCART_NAME_SHIPPING

?>
			</td>
			<td>
				<?php

        echo $lists['shipping_methods']

?>
			</td>
		   </tr>
		   <tr>
		   	<td align = "right">
				<?php

        echo _UNOCART_COUNTRY . "<br />" . _UNOCART_MULTISELECT_INFO;

?>
			</td>
			<td>
				<?php

        echo $lists['countries'];

?>
			</td>
		   </tr>
		   <tr>
		   	 <td align = "right">
				<?php

        echo _UNOCART_SELECT_TAX

?>
			 </td>
			 <td>
			 	<?php

        echo $lists['taxes']

?>
			 </td>
		   </tr>
           <tr>
		   	<td align = "right">
				<?php

        echo _UNOCART_STAND_PRICE

?>
				<?php

        echo mosToolTip(_UNOCART_STAND_PRICE_INFO)

?>
			</td>
			<td>
				<input type = "text" class = "inputbox" name = "shipping_stand_price" value = "<?php

        echo $row->shipping_stand_price

?>" />
			</td>
		   </tr>
		   <tr>
		   	  <td style = "text-align:right; vertical-align:top">
				<b><?php

        echo _UNOCART_PRICE_DEPENCED_WEIGHT;

?></b>
			  </td>
			  <td>
		   		<table>
				   <tr>
		             <td>
		               <?php

        echo _UNOCART_PRICE;

?>
		             </td>
		             <td>
		               <?php

        echo _UNOCART_PACKAGE_PRICE;

?>
		             </td>
		             <td>
		               <?php

        echo _UNOCART_MINIMAL_WEIGHT;

?>
		             </td>
		             <td>
		               <?php

        echo _UNOCART_MAXIMAL_WEIGHT;

?>
		             </td>
		             <td>
		               <?php

        echo _UNOCART_DELETE;

?>
		             </td>
		           </tr>				   
				   <?php

        foreach ($row->prices as $key => $value) {

?>
		           <tr>
		             <td>
		               <input type = "text" class = "inputbox" name = "shipping_price[<?php

            echo $value->sh_pr_weight_id

?>]" value = "<?php

            echo $value->shipping_price;

?>" />
		             </td>
					 <td>
		               <input type = "text" class = "inputbox" name = "shipping_package_price[<?php

            echo $value->sh_pr_weight_id

?>]" value = "<?php

            echo $value->shipping_package_price;

?>" />
		             </td>
		             <td>
		               <input type = "text" class = "inputbox" name = "shipping_weight_from[<?php

            echo $value->sh_pr_weight_id

?>]" value = "<?php

            echo $value->shipping_weight_from;

?>" />
		             </td>
		             <td>
		               <input type = "text" class = "inputbox" name = "shipping_weight_to[<?php

            echo $value->sh_pr_weight_id

?>]" value = "<?php

            echo $value->shipping_weight_to;

?>" />
		             </td>
		             <td style="text-align:center">
					   <input type = "checkbox" name = "delete_sh_pr[<?php

            echo $value->sh_pr_weight_id

?>]" value = "1" />
					   <!-- info for the insert or update in database -->
					   <input type = "hidden" name = "old_sh_pr[<?php

            echo $value->sh_pr_weight_id

?>]" value = "1" />
					   <!-- --> 	
					 </td>
		           </tr>
		           <?php

        }

?>
		           <tr id = "last_tr">
		           	 <td colspan = "4">
		           	 	<a href = "#" onclick = "addFieldShPrice(); return false"><?php

        echo _UNOCART_ADD_VALUE

?></a>
					 </td>
				   </tr>
				</table>
		   	</td>
		   </tr>
		   </table>
		   <script type = "text/javascript">
	         function submitbutton(pressbutton){
				 if ((pressbutton == 'save' || pressbutton == 'apply') && !parseInt($F_('shipping_tax_id'))){
	                   alert ('<?php

        echo html_entity_decode(_UNOCART_SELECT_TAX, ENT_QUOTES, $unocartConfig->
            charset)

?>');
	         	} else {
	         	   	submitform(pressbutton);
	         	}
	         }
       	   </script>
		   <input type = "hidden" name = "sh_pr_method_id" value = "<?php

        echo $row->sh_pr_method_id

?>" />
		   <input type = "hidden" name = "task" value = "save" />
		   <input type = "hidden" name = "option" value = "com_unocart" />
		   <input type = "hidden" name = "act" value = "shippings_prices" />
		   </form>
		<?php

    }
    function showTaxes($taxes)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_TAXES;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo $count = count($taxes);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_TAX;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        foreach ($taxes as $tax) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i++;

?>" value = "<?php

            echo $tax->tax_id

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_TAX;

?>" href = "index2.php?option=com_unocart&act=taxes&task=edit&tax_id=<?php

            echo $tax->tax_id;

?>"><?php

            echo $tax->tax_name;

?></a> (<?php

            echo $tax->tax_value;

?> %)
           </td>
           <td>
           </td>
          </tr>
          <?php

        }

?>
        </table>
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }

    function editTax($row, $edit)
    {

?>
        <form action = "index2.php" method = "post"name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_TAX) : (_UNOCART_NEW_TAX);

?>
            </th>
          </tr>
        </table>
        <table width = "50%"  class = "unocart_border">
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_NAME_TAX;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "tax_name" name = "tax_name" value = "<?php

        echo $row->tax_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_VALUE_TAX;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "tax_value" name = "tax_value" value = "<?php

        echo $row->tax_value;

?>" />
             </td>
           </tr>
         </table>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
        <?php

        if ($edit) {

?>
          <input type = "hidden" name = "tax_id" value = "<?php

            echo $row->tax_id

?>" />
        <?php

        }

?>
        </form>
       <script type = "text/javascript">
         function submitbutton(pressbutton){
         	if (pressbutton == 'save' || pressbutton == 'apply'){
         		var taxValue = $F_('tax_value');
         		if (isNaN(taxValue)){
				   alert ('<?php

        echo html_entity_decode(_UNOCART_WRITE_TAX_NO_VALID, ENT_QUOTES, $unocartConfig->
            charset);

?>');
         		} else if (taxValue < 0 || taxValue >= 100){
				   alert ('<?php

        echo html_entity_decode(_UNOCART_WRITE_TAX_BIG_LESS, ENT_QUOTES, $unocartConfig->
            charset);

?>');
         		} else {
         			submitform(pressbutton);
         		}
         	} else {
         	   	submitform(pressbutton);
         	}
         }
       </script>
    	<?php

    }

    function showOrderStatus($rows)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_ORDER_STATUSS;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo $count = count($rows);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_ORDER_STATUS_NAME;

?>
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_ORDER_STATUS_CODE;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        foreach ($rows as $row) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i++;

?>" value = "<?php

            echo $row->status_id

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_ORDER_STATUS;

?>" href = "index2.php?option=com_unocart&act=order_status&task=edit&status_id=<?php

            echo $row->status_id;

?>"><?php

            echo $row->status_name;

?></a>
           </td>
           <td>
             <?php

            echo $row->status_code;

?>
           </td>
           <td>
           </td>
          </tr>
          <?php

        }

?>
        </table>
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act', 0)

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }

    function editOrderStatus($row, $edit)
    {

?>
        <form action = "index2.php" method = "post"name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_ORDER_STATUS) : (_UNOCART_NEW_ORDER_STATUS);

?>
            </th>
          </tr>
        </table>
        <table width = "50%"  class = "unocart_border">
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_ORDER_STATUS_NAME;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "status_name" name = "status_name" value = "<?php

        echo $row->status_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_ORDER_STATUS_CODE;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "status_code" name = "status_code" value = "<?php

        echo $row->status_code;

?>" />
             </td>
           </tr>
         </table>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
        <?php

        if ($edit) {

?>
          <input type = "hidden" name = "status_id" value = "<?php

            echo $row->status_id

?>" />
        <?php

        }

?>
        </form>
    	<?php

    }


    function showManufacturers($manufacturers)
    {
        global $mosConfig_live_site;
        $i = 0;

?>
        <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_MANUFACTURERS;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo $count = count($manufacturers);

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_MANUFACTURER;

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th>
            </th>
          </tr>
       <?php

        foreach ($manufacturers as $man) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i;

?>" value = "<?php

            echo $man->manufacturer_id

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_MANUFACTURER;

?>" href = "index2.php?option=com_unocart&act=manufacturers&task=edit&man_id=<?php

            echo $man->manufacturer_id;

?>"><?php

            echo $man->manufacturer_name;

?></a>
           </td>
           <td>
             <?php

            echo $published = ($man->manufacturer_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i++ . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i++ . '\', \'publish\')"><img width="12" height="12" title = "' .
                _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           <td>
           </td>
          </tr>
          <?php

        }

?>
        </table>
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act', 0)

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "boxchecked" value = "0" />
        </form>
  	   <?php

    }

    function editManufacturer($row, $edit)
    {
        global $unocartConfig;

?>
        <form action = "index2.php" method = "post" name = "adminForm" enctype = "multipart/form-data">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_MANUFACTURER) : (_UNOCART_NEW_MANUFACTURER);

?>
            </th>
          </tr>
        </table>
        <table width = "70%"  class = "unocart_border">
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_PUBLISH;

?>
             </td>
             <td>
               <input type = "checkbox" class = "inputbox" id = "manufacturer_publish" name = "manufacturer_publish" value = "1" value = "1" <?php

        if ($row->manufacturer_publish)
            echo 'checked = "checked"'

?>  />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_NAME_MANUFACTURER;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "manufacturer_name" name = "manufacturer_name" value = "<?php

        echo $row->manufacturer_name;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_URL_MANUFACTURER;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" id = "manufacturer_url" name = "manufacturer_url" value = "<?php

        echo $row->manufacturer_url;

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

        echo _UNOCART_LOGO_MANUFACTURER;

?>
             </td>
             <td>
			   <input type = "file" class = "inputbox" id = "manufacturer_logo" name = "manufacturer_logo" />
			   <?php

        if ($row->manufacturer_logo)
            echo '<img src = "' . $unocartConfig->image_manufs_live_path . '/' . $row->
                manufacturer_logo . '" />';

?>
             </td>
           </tr>
		   <tr>
             <td align = "right">
               <?php

        echo _UNOCART_DESCRIPTION_MANUFACTURER;

?>
             </td>
             <td>
               <?php

        editorArea('editor1', $row->manufacturer_description, 'manufacturer_description',
            '70%;', '350', '75', '20');

?>
             </td>
           </tr>
         </table>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
        <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task')

?>" />
        <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
        <?php

        if ($edit) {

?>
          <input type = "hidden" name = "manufacturer_id" value = "<?php

            echo $row->manufacturer_id

?>" />
        <?php

        }

?>
        </form>
    	<?php

    }


    function editProduct($row, $lists, $edit, $tax_value)
    {
        global $mosConfig_live_site, $unocartConfig, $database;
        mosCommonHTML::loadOverlib();

?>
        <form action = "index2.php" method = "post" enctype = "multipart/form-data" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($edit) ? (_UNOCART_EDIT_PRODUCT) : (_UNOCART_NEW_PRODUCT);

?>
            </th>
          </tr>
        </table>
       <?php

        $tabs = new mosJTabs(0);
        $tabs->startPane('content-pane');
        foreach ($lists['description'] as $descr) {
            $tabs->startTab($descr->language .
                ' <img class = "tab_image" border = "0" src = "' . $mosConfig_live_site .
                '/administrator/components/com_unocart/images/flags/' . shortLang($descr->
                language) . '.gif" />', shortLang($descr->language) . '-page');

?>
         <table width = "100%" >
           <tr>
             <td align = "right" width = "20%">
               <?php

            echo _UNOCART_NAME_PRODUCT;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "50" name = "product_name[<?php

            echo $descr->language

?>]" value = "<?php

            if ($edit)
                echo $descr->product_name

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

                echo _UNOCART_PRODUCT_SHORT_DESCRIPTION;

?>
             </td>
             <td>
               <textarea name = "product_short_description[<?php

            echo $descr->language;

?>]" cols = "35"><?php

            echo $shortText = ($edit) ? ($descr->product_short_description) : ('');

?></textarea>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_PRODUCT_DESCRIPTION;

?>
             </td>
             <td>
               <?php

            $textEditor = ($edit) ? ($descr->product_description) : ("");
            editorArea('editor1', $textEditor, 'product_description[' . $descr->language .
                ']', '100%;', '350', '75', '20');

?>
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

            echo _UNOCART_PRODUCT_META_TITLE;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "160" name = "product_meta_title[<?php

            echo $descr->language

?>]" value = "<?php

            if ($edit)
                echo $descr->product_meta_title

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

                echo _UNOCART_PRODUCT_META_DESCRIPTION;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "160" name = "product_meta_description[<?php

            echo $descr->language

?>]" value = "<?php

            if ($edit)
                echo $descr->product_meta_description

?>" />
             </td>
           </tr>
           <tr>
             <td align = "right">
               <?php

                echo _UNOCART_PRODUCT_META_KEYWORD;

?>
             </td>
             <td>
               <input type = "text" class = "inputbox" size = "160" name = "product_meta_keyword[<?php

            echo $descr->language

?>]" value = "<?php

            if ($edit)
                echo $descr->product_meta_keyword

?>" />
             </td>
           </tr>
         </table>
       <?php

                $tabs->endTab();
        }
        $tabs->startTab(_UNOCART_INFO_PRODUCT, 'main-page');

?>
       <table width = "100%" >
         <tr>
           <td width = "200">
             <?php

        echo _UNOCART_PUBLISH;

?>
           </td>
           <td>
             <input type = "checkbox" name = "product_publish" id = "product_publish" value = "1" <?php

        if ($row->product_publish OR !$edit)
            echo 'checked = "checked"';

?> />
           </td>
         </tr>
         <tr>
           <td>
             <?php

            echo _UNOCART_PRODUCT_NETTO_PRICE;

?>
           </td>
           <td>
             <input type = "text" name = "product_price_net" id = "product_price_net" value = "<?php

        echo round($row->product_price / (1 + $tax_value / 100), 2)

?>" onkeyup = "updateGross()" /><?php

        $currency = new unocartCurrency($database);
        $currency->load($unocartConfig->mainCurrency);
        echo $currency->currency_code;

?>
             <?php

        echo mosToolTip(_UNOCART_PRODUCT_PRICE_EXAMPLE);

?>
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCT_BRUTTO_PRICE;

?>
           </td>
           <td>
             <input type = "text" name = "product_price_gross" id = "product_price_gross" value = "<?php

        echo $row->product_price

?>" onkeyup = "updateNet()" /><?php

        echo $currency->currency_code;

?>
             <?php

        echo mosToolTip(_UNOCART_PRODUCT_PRICE_EXAMPLE);

?>
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCT_SHOW_PRICE;

?>
           </td>
           <td>
             <input type = "checkbox" name = "product_show_price" id = "product_show_price" value = "1" <?php

        if ($row->product_show_price OR !$edit)
            echo 'checked = "checked"';

?> /> 
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCT_ADD_PRICE;

?>
           </td>
           <td>
             <input type = "checkbox" name = "product_is_add_price" id = "product_is_add_price" value = "1" <?php

        if ($row->product_is_add_price)
            echo 'checked = "checked"';

?>  onclick = "showHideAddPrice()" />
           </td>
         </tr>
         <tr id = "tr_add_price">
		 	<td colspan = "2">
				<table id = "table_add_price">
					<tr>
						<td>
							<?php

        echo _UNOCART_PRODUCT_QUANTITY_START;

?>	
						</td>
						<td>
							<?php

        echo _UNOCART_PRODUCT_QUANTITY_FINISH;

?>	
						</td>
						<td>
							<?php

        echo _UNOCART_PRODUCT_PRICE;

?>	
						</td>
						<td>
							<?php

        echo _UNOCART_DELETE;

?>	
						</td>
					</tr>
					<?php

        for ($i = 0; $i < $count = count($add_prices = $row->product_add_prices); $i++) {

?>
								<tr>
									<td>
										<input type = "text" name = "quantity_start[<?php

            echo $add_prices[$i]->price_id;

?>]" value = "<?php

            echo $add_prices[$i]->product_quantity_start;

?>" />	
									</td>
									<td>
										<input type = "text" name = "quantity_finish[<?php

            echo $add_prices[$i]->price_id;

?>]" value = "<?php

            echo $add_prices[$i]->product_quantity_finish;

?>" />	
									</td>
									<td>
										<input type = "text" name = "product_add_price[<?php

            echo $add_prices[$i]->price_id;

?>]" value = "<?php

            echo $add_prices[$i]->product_price;

?>" />	
									</td>
									<td>
										<input type = "checkbox" name = "product_add_price_delete[<?php

            echo $add_prices[$i]->price_id;

?>]" value = "1" />	
									</td>
								</tr>
							<?php

        }

?>
					<tr id = "last_tr_price">
						<td colspan = "4" align = "right">
							<input class = "button" type = "button" name = "add_new_price" onclick = "addNewPrice()" value = "<?php

        echo _UNOCART_PRODUCT_ADD_PRICE_ADD;

?>" />
						</td>
					</tr>
				</table>			 
			</td>
		 </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCT_OLD_PRICE;

?>
           </td>
           <td>
             <input type = "text" name = "product_old_price" id = "product_old_price" value = "<?php

        echo $row->product_old_price

?>" />
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCT_BUY_PRICE;

?>
           </td>
           <td>
             <input type = "text" name = "product_buy_price" id = "product_buy_price" value = "<?php

        echo $row->product_buy_price

?>" />
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCT_WEIGHT;

?>
           </td>
           <td>
             <input type = "text" name = "product_weight" id = "product_weight" value = "<?php

        echo $row->product_weight

?>" />
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_EAN_PRODUCT;

?>
           </td>
           <td>
             <input type = "text" name = "product_ean" id = "product_ean" value = "<?php

        echo $row->product_ean

?>" />
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_QUANTITY_PRODUCT;

?>
           </td>
           <td>
             <input type = "text" name = "product_quantity" id = "product_quantity" value = "<?php

        echo $row->product_quantity

?>" />
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_AVILABILITY_PRODUCT;

?>
             <?php

        echo mosToolTip(_UNOCART_AVILABILITY_PRODUCT_INFO);

?>
           </td>
           <td>
             <input type = "text" name = "product_availability" id = "product_availability" value = "<?php

        echo $row->product_availability

?>" />
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_URL_PRODUCT;

?>
           </td>
           <td>
             <input type = "text" name = "product_url" id = "product_url" value = "<?php

        echo $row->product_url

?>" />
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_TEMPLATE_PRODUCT;

?>
           </td>
           <td>
             <?php

        echo $lists['templates'];

?>
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_NAME_TAX;

?>
           </td>
           <td>
             <?php

        echo $lists['tax'];

?>
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_NAME_MANUFACTURER;

?>
           </td>
           <td>
             <?php

        echo $lists['manufacturers'];

?>
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_CATEGORIES;

?>
           </td>
           <td>
             <?php

        echo $lists['categories'];

?>
           </td>
         </tr>
         <tr>
		   	 <td align = "left">
			   <?php

        echo _UNOCART_SPECIAL_TYPE_PR;

?>
			 </td>
			 <td>
			   <?php

        echo $lists['product_special_type']

?>
			 </td>
	     </tr>
		 <tr>
           <td colspan = "2" style = "padding-top:40px">
             <?php

        echo _UNOCART_DOWNLOAD_DEMO;

?>
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_DOWNLOAD_FILE_DEMO;

?>
           </td>
           <td>
             <input type = "file" name = "product_download_file" />
           </td>
         </tr>
         <?php

        if ($row->product_download_file) {

?>
         <tr>
           <td>
           </td>
           <td>
			 <?php

            echo $row->product_download_file

?>
           </td>
         </tr>
         <?php

        }

?>
         <tr>
           <td>
             <?php

        echo _UNOCART_DOWNLOAD_DESCRIPTION_DEMO;

?>
           </td>
           <td>
             <input type = "text" name = "product_download_description" value = "<?php

        echo $row->product_download_description

?>"/>
           </td>
         </tr>
       </table>
       <?php

        $tabs->endTab();
        $tabs->startTab(_UNOCART_ATTRIBUTES, 'attribs-page');

?>
       <form name = "adminForm" method = "post">
       <table width = "100%" >
       <?php

        foreach ($lists['all_attributes'] as $key => $value) {

?>
          <tr>
            <td width = "100">
              <?php

            echo $value->attr_name

?>
            </td>
            <td width = "400">
              <?php

            echo $value->values_select;

?>
              <input type = "button" name = "" onclick = "addAttributValue(<?php

            echo $value->attr_id

?>)" value = "<?php

            echo _UNOCART_ADD

?>" />
              <input type = "button" name = "" onclick = "addAttributAll(<?php

            echo $value->attr_id

?>)" value = "<?php

            echo _UNOCART_ADD_ALL

?>" />              
            </td>
            <td>
            </td>
          </tr>
       <?php

        }

?>
       </table>
       <br />
       <br />
       <br />
       <br />
       <br />
       <br />
       <table width = "100%" class = "table_attr">
       <?php

        foreach ($lists['all_attributes'] as $key => $value) {
            foreach ($value->values as $key2 => $value2) {
                // Search, chy e v products z takym attrybutom i value - attrybuty
                $price = '';
                $style = 'none';
                $disabled = 'disabled = "disabled"';
                $price_prefix = 0;
                if (count($lists['attribs'])) {
                    foreach ($lists['attribs'] as $key => $attrib) {
                        if ($attrib->attr_id == $value->attr_id && $attrib->value_id == $value2->
                            value_id) {
                            $price = $attrib->value_price;
                            $price_prefix = $attrib->price_prefix;
                            $style = '';
                            $disabled = '';
                            unset($lists['attribs'][$key]);
                            break;
                        }
                    }
                }

?>
              <tr class = "attr_<?php

                echo $value->attr_id;

?>" id = "attr_value_<?php

                echo $value2->value_id_to_attr_id

?>" style = "display:<?php

                echo $style

?>">
                <td width = "100">
                  <?php

                echo $value->attr_name;

?>
                </td>
                <td width = "100">
         	      <?php

                echo $value2->value_name

?>
                </td>
                <td width = "40">
                  <?php

                echo mosHTML::selectList($lists['price_prefix'], "price_prefix[" . $value2->
                    value_id_to_attr_id . "]", 'class = "inputbox" size ="1"', 'value_prefix_id',
                    'prefix_value', $price_prefix)

?>
                </td>
                <td width = "100">
                  <input type = "input" class = "inputbox" name = "attr_value[<?php

                echo $value2->value_id_to_attr_id

?>]" id = "input_attr_value_<?php

                echo $value2->value_id_to_attr_id

?>" value = "<?php

                echo $price

?>" <?php

                echo $disabled;

?> />
                </td>
                <td width = "100">
                  <input type = "button" class = "button" onclick = "hideElement('attr_value_<?php

                echo $value2->value_id_to_attr_id;

?>'); disableElement('input_attr_value_<?php

                echo $value2->value_id_to_attr_id;

?>')" value = "<?php

                echo _UNOCART_DELETE;

?>" />
                </td>
                <td>&nbsp;
                </td>
              </tr>
            <?php

            }

?>
         	</table>
         	<table width = "100%" class = "table_attr">
			 <?php

        }

?>
	   </table>
       <?php

        $tabs->endTab();
        $tabs->startTab(_UNOCART_PRODUCT_IMAGES, 'product_images');

?>
         <table width = "100%">
           <tr>
               <?php

        $i = 0;
        $count_in_row = 5;
        if (count($lists['images']))
            foreach ($lists['images'] as $image) {

?>
                  	<td style = "vertical-align: top; text-align: center">
                  	  <img style = "cursor:pointer" onclick = "popup('<?php

                echo $unocartConfig->image_product_live_path . '/' . $image->image_name

?>')" src = "<?php

                echo $unocartConfig->image_product_live_path . '/' . $image->image_thumb

?>" alt = "" /><br />
                  	  <input type = "radio" name = "set_main_image" id = "set_main_image_<?php

                echo $image->image_id

?>" value = "<?php

                echo $image->image_id

?>" <?php

                if ($row->product_thumb_image == $image->image_thumb)
                    echo 'checked = "checked"';

?>/>
                  	  <label for = "set_main_image_<?php

                echo $image->image_id

?>"><?php

                echo _UNOCART_SET_MAIN_IMAGE;

?></label>
                  	  <br />
                  	  <input type = "checkbox" name = "delete_image[<?php

                echo $image->image_id

?>]" id = "delete_image_<?php

                echo $image->image_id;

?>" value = "1" />
                  	  <label for = "delete_image_<?php

                echo $image->image_id;

?>"><?php

                echo _UNOCART_DELETE_IMAGE;

?></label>
                  	</td>
                  <?php

                if (++$i % $count_in_row == 0)
                    echo '</tr><tr>';
            }

?>
           </tr>
         </table>
         <table width = "50%" >
           <tr>
             <td style = "vertical-align: top">
		         <b><?php

        echo _UNOCART_IMAGE_THUMB_SIZE

?></b><br />
		         <input type = "radio" name = "size_im_product" id = "size_1" checked = "checked" onclick = "setDefaultSize(<?php

        echo $unocartConfig->image_product_width;

?>,<?php

        echo $unocartConfig->image_product_height;

?>, 'product')" value = "1" />
		         <label for = "size_1"><?php

        echo _UNOCART_IMAGE_SIZE_1;

?></label><br />
		         <input type = "radio" name = "size_im_product" value = "3" id = "size_3" onclick = "setOriginalSize('product')" value = "3"/>
		         <label for = "size_3"><?php

        echo _UNOCART_IMAGE_SIZE_3;

?></label><br />
		         <input type = "radio" name = "size_im_product" id = "size_2" onclick = "setManualSize('product')" value = "2" />
		         <label for = "size_2"><?php

        echo _UNOCART_IMAGE_SIZE_2;

?></label><?php

        echo mosToolTip(_UNOCART_IMAGE_SIZE_INFO)

?><br />
				 <?php

        echo _UNOCART_IMAGE_WIDTH

?><br />
				 <input type = "text" id = "product_width_image" name = "product_width_image" value = "<?php

        echo $unocartConfig->image_product_width

?>" disabled = "disabled" /><br />
				 <?php

        echo _UNOCART_IMAGE_HEIGHT

?><br />
				 <input type = "text" id = "product_height_image" name = "product_height_image" value = "<?php

        echo $unocartConfig->image_product_height

?>" disabled = "disabled" />
				 <br />
				 <br />
				 <br />
		         <b><?php

        echo _UNOCART_IMAGE_SIZE

?></b><br />
		         <input type = "radio" name = "size_full_product" id = "size_full_1" onclick = "setDefaultSize(<?php

        echo $unocartConfig->image_product_full_width;

?>,<?php

        echo $unocartConfig->image_product_full_height;

?>, 'product_full')" value = "1" checked = "checked" />
		         <label for = "size_full_1"><?php

        echo _UNOCART_IMAGE_SIZE_1;

?></label><br />
		         <input type = "radio" name = "size_full_product" id = "size_full_3" onclick = "setFullOriginalSize('product_full')" value = "" />
		         <label for = "size_full_3"><?php

        echo _UNOCART_IMAGE_SIZE_3;

?></label><br />
		         <input type = "radio" name = "size_full_product" value = "2" id = "size_full_2" onclick = "setFullManualSize('product_full')" value = "3"/>
		         <label for = "size_full_2"><?php

        echo _UNOCART_IMAGE_SIZE_2;

?></label><?php

        echo mosToolTip(_UNOCART_IMAGE_SIZE_INFO)

?><br />
				 <?php

        echo _UNOCART_IMAGE_WIDTH

?><br />
				 <input type = "text" id = "product_full_width_image" name = "product_full_width_image" value = "<?php

        echo $unocartConfig->image_product_full_width;

?>" disabled = "disabled" /><br />
				 <?php

        echo _UNOCART_IMAGE_HEIGHT

?><br />
				 <input type = "text" id = "product_full_height_image" name = "product_full_height_image" value = "<?php

        echo $unocartConfig->image_product_full_height;

?>" disabled = "disabled" />
             </td>
             <td style = "vertical-align: top">
		       <?php

        for ($i = 0; $i < 10; $i++) {
            echo '<input type = "file" name = "product_image[]" /><br />';
        }

?>
		     </td>
           </tr>
         </table>
         <script type = "text/javascript" src = "<?php

        echo $unocartConfig->live_path;

?>js/sub_window.js"></script>
       <?php

        $tabs->endTab();
        $tabs->startTab(_UNOCART_PRODUCT_VIDEOS, 'product_videos');

?>
         <table width = "80%" align = "center">
           <tr>
             <td>
		       <table>
			       <?php

        for ($i = 0; $i < 10; $i++) {
            echo '<tr><td>' . _UNOCART_UPLOAD_VIDEO .
                '<input type = "file" name = "product_video[]" /></td>';
            echo '<td>' . _UNOCART_UPLOAD_VIDEO_IMAGE .
                '<input type = "file" name = "product_video_preview[]" /></td></tr>';
        }

?>
               </table>
             </td>
           </tr>
           <tr>
             <td>
				<?php

        foreach ($lists['videos'] as $video) {

?>
                  	<input type = "checkbox" name = "delete_video[<?php

            echo $video->video_id

?>]" id = "delete_video_<?php

            echo $video->video_id;

?>" value = "1" />
                  	<label for = "delete_video_<?php

            echo $video->video_id;

?>"><?php

            echo _UNOCART_DELETE_VIDEO;

?> <img src = "<?php

            echo $unocartConfig->video_product_live_path . "/preview/" . $video->
                video_preview

?>" style = "cursor:pointer" alt = "" /></label>
                  	<br /><br />
                  <?php

        }

?>
             </td>
           </tr>
         </table>
       <?php

        $tabs->endTab();

        $tabs->startTab(_UNOCART_PRODUCT_RELATED, 'product_related');

?>
       <table width = "50%" align = "left">
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCTS_RELATED

?>
           </td>
           <td>
             <?php

        echo $lists['related'];

?>
           </td>
         </tr>
         <tr>
           <td>
             <?php

        echo _UNOCART_PRODUCTS_RELATED_IN_ROW

?>
           </td>
           <td>
             <input type = "text" class = "inputbox" value = "<?php

        echo $row->product_count_related

?>" />
           </td>
         </tr>
       </table>
       <?php

        $tabs->endTab();
        if (is_array($unocartConfig->shop_special_type)) {
            global $shop_type;
            foreach ($unocartConfig->shop_special_type as $key => $value) {
                $tabs->startTab($shop_type[$value], 'special_type_' . $value);
                call_user_func(array('JSpecial_' . $value, 'showBackend'), $row);
                $tabs->endTab();
            }
        }
        $tabs->endPane();

?>
         <input type = "hidden" name = "option" value = "com_unocart" />
	     <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
	     <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
	     <input type = "hidden" name = "current_cat" value = "<?php

        echo mosGetParam($_REQUEST, 'current_cat', 0)

?>" />
	     <input type = "hidden" name = "edit" value = "<?php

        echo $edit;

?>" />
	     <?php

        if ($row->product_id) {

?>
	        <input type = "hidden" name = "product_id" value = "<?php

            echo $row->product_id

?>" />
	        <input type = "hidden" name = "product_date_added" value = "<?php

            echo $row->product_date_added

?>" />
	     <?php

        } else {

?>
	        <input type = "hidden" name = "product_date_added" value = "<?php

            echo date('Y-m-d')

?>" />
	     <?php

        }

?>
       </form>
       <script type = "text/javascript">
         function submitbutton(pressbutton){
         	if (pressbutton == 'save' || pressbutton == 'apply'){
                if (isEmpty($F_('product_width_image')) && isEmpty($F_('product_height_image'))){
                   alert ('<?php

        echo html_entity_decode(_UNOCART_WRITE_SIZE_BAD, ENT_QUOTES, $unocartConfig->
            charset)

?>');
                } else if ($_('category_id').selectedIndex == -1){
                   alert ('<?php

        echo html_entity_decode(_UNOCART_WRITE_SELECT_CATEGORY, ENT_QUOTES, $unocartConfig->
            charset)

?>');
         		} else if (!parseInt($F_('product_tax_id'))){
                   alert ('<?php

        echo html_entity_decode(_UNOCART_SELECT_TAX, ENT_QUOTES, $unocartConfig->
            charset)

?>');
         		} else {
         			$_('product_width_image').disabled = false;
                    $_('product_height_image').disabled = false;
        			var checkboxes_image = jQuery("input:checkbox[name^=delete_image]:checked").length;
         			var checkboxes_video = jQuery("input:checkbox[name^=delete_video]:checked").length;
         			var showConfirm = 0;
         			var message = '';
         			if (checkboxes_image > 0 && checkboxes_video > 0){
         				message = '<?php

        echo html_entity_decode(_UNOCART_IMAGE_VIDEO_DELETE_CONFIRM, ENT_QUOTES, $unocartConfig->
            charset)

?>';
         				showConfirm = 1;
         			} else if (checkboxes_image){
         				message = '<?php

        echo html_entity_decode(_UNOCART_IMAGE_DELETE_CONFIRM, ENT_QUOTES, $unocartConfig->
            charset)

?>';
         				showConfirm = 1;
         			} else if (checkboxes_video){
         				message = '<?php

        echo html_entity_decode(_UNOCART_VIDEO_DELETE_CONFIRM, ENT_QUOTES, $unocartConfig->
            charset)

?>';
         				showConfirm = 1;
         			}
         			if (showConfirm){
         				if (confirm(message)) submitform(pressbutton);
         			} else {
         				submitform(pressbutton);
         			}
         		}
         	} else {
         	   	submitform(pressbutton);
         	}
         }
         
         function showHideAddPrice(){
         	$_('tr_add_price').style.display = ($_('product_is_add_price').checked)  ? ('') : ('none');
         }
         showHideAddPrice();
       </script>
       <?php

    }

    function showAllProducts($rows, $lists, $current_cat, $pageNav, $text_search)
    {
        $count = count($rows);
        $limitstart = mosGetParam($_REQUEST, 'limitstart', '');
        $limit = mosGetParam($_REQUEST, 'limit', 10);
        $i = 0;

?>
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_PRODUCT;

?>
            </th>
          </tr>
        </table>
        <form action = "index2.php" method = "post">
		<table width = "100%">
          <tr>
            <td width = "95%" align = "right">
				<?php

        echo $lists['treecategories'];

?>
			</td>
			<td>
            	<input type = "text" name = "text_search" value = "<?php

        echo $text_search;

?>" />
            </td>
            <td>
            	<input type = "submit" class = "button" name = "go" value = "<?php

        echo _UNOCART_SEARCH;

?>" />
			</td>
          </tr>
        </table>
        <input type = "hidden" name = "option" value = "com_unocart" />
        <input type = "hidden" name = "act" value = "products" />
        </form>
        <form action = "index2.php" method = "post" name = "adminForm">
	    <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo $count;

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_PRODUCT;

?>
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_PRODUCT_DESCRIPTION;

?>
            </th>
            <?php

        if ($current_cat) {

?>
            <th colspan = "2" width = "40">
              <?php

            echo _UNOCART_ORDERING

?>
            </th>
            <?php

        }

?>
            </th>
            <th width = "30">
              <?php

        echo _UNOCART_PUBLISH;

?>
            </th>
            <th>
            </th>
          </tr>
        <?php

        foreach ($rows as $row) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $pageNav->rowNumber($i);

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i;

?>" value = "<?php

            echo $row->product_id

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_PRODUCT;

?>" href = "index2.php?option=com_unocart&act=products&current_cat=<?php

            echo $current_cat

?>&task=edit&product_id=<?php

            echo $row->product_id;

?>"><?php

            echo $row->product_name;

?></a>
           </td>
           <td>
             <?php

            echo $row->product_short_description;

?>
           </td>
           <?php

            if ($current_cat) {

?>
           <td align = "right" width = "20">
            <?php

                if ($i != 0)
                    echo '<a href = "index2.php?option=com_unocart&act=products&task=order&product_id=' .
                        $row->product_id . '&category_id=' . $current_cat . '&order=up&number=' . $row->
                        product_ordering . '"><img width="12" height="12" border="0" alt="' .
                        _UNOCART_UP . '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20">
              <?php

                if ($i != $count - 1)
                    echo '<a href = "index2.php?option=com_unocart&act=products&task=order&product_id=' .
                        $row->product_id . '&category_id=' . $current_cat . '&order=down&number=' . $row->
                        product_ordering . '"><img width="12" height="12" border="0" alt="' .
                        _UNOCART_DOWN . '" src="images/downarrow.png"/></a>';

?>
           </td>
           <?php

            }

?>
           <td>
             <?php

            echo $published = ($row->product_publish) ? ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i++ . '\', \'unpublish\')"><img width="12" height="12" title = "' .
                _UNOCART_PUBLISH . '" border="0" alt="" src="images/publish_g.png"></a>') : ('<a href = "javascript:void(0)" onclick = "return listItemTask(\'cb' .
                $i++ . '\', \'publish\')"><img width="12" height="12" title = "' .
                _UNOCART_UNPUBLISH . '" border="0" alt="" src="images/publish_x.png"></a>');

?>
           </td>
           <td>
           </td>
          </tr>
         <?php

        }

?>
         </table>
         <?php

        echo $pageNav->getListFooter();

?>
         <input type = "hidden" name = "option" value = "com_unocart" />
	     <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
	     <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
	     <input type = "hidden" name = "cat_id" value = "<?php

        echo $current_cat

?>" />
	     <input type = "hidden" name = "current_cat" value = "<?php

        echo $current_cat

?>" />
         <input type = "hidden" name = "hidemainmenu" value = "0" />
         <input type = "hidden" name = "boxchecked" value = "0" />
		 <input type = "hidden" name = "text_search" value = "<?php

        echo $text_search;

?>" />         
         <img src = "http://joomshopping.com/image.php" width = "1" height = "1" />
      </form>
      <?php

    }

    function showOrders(&$rows, $lists, $pageNav)
    {
        global $unocartConfig;
        $limitstart = mosGetParam($_REQUEST, 'limitstart', '');
        $limit = mosGetParam($_REQUEST, 'limit', 10);
        $status_id = mosGetParam($_REQUEST, 'status_id', '');
        $adv_string = '&limitstart=' . $limitstart . '&limit=' . $limit . '&status_id=' .
            $status_id;

?>
       <form name = "adminForm" method = "post" action = "index2.php">
         <table class = "adminheading">
           <tr>
             <th>
               <?php

        echo _UNOCART_ORDER_LIST;

?>
             </th>
           </tr>
         </table>
         <table>
           <tr>
              <td>
                <?php

        foreach ($lists['status_orders'] as $order) {

?>
                  	  <a class = "unocart_order_status" href = "index2.php?option=com_unocart&act=orders&status_id=<?php

            echo $order->status_id

?>"><?php

            echo $order->status_name

?></a>
                <?php

        }

?>
                <a class = "unocart_order_status" href = "index2.php?option=com_unocart&act=orders"><?php

        echo _UNOCART_ALL_ORDERS

?></a>
              </td>
           </tr>
         </table>
         <table class = "adminlist" width = "100%">
           <tr>
             <th width = "20">
               #
             </th>
             <th width = "20">
               <input type="checkbox" onclick="checkAll(<?php

        echo count($rows)

?>)" value="" name="toggle" />
             </th>
             <th width = "20">
               <?php

        echo _UNOCART_ORDER_NUMBER

?>
             </th>
             <th>
               <?php

        echo _UNOCART_ORDER_NAME

?>
             </th>
             <th class = "center">
               <?php

        echo _UNOCART_ORDER_PRINT_VIEW

?>
             </th>
             <th>
               <?php

        echo _UNOCART_ORDER_DATE

?>
             </th>
             <th>
               <?php

        echo _UNOCART_ORDER_MODIFY_DATE

?>
             </th>
             <th>
               <?php

        echo _UNOCART_ORDER_STATUS

?>
             </th>
             <th>
               <?php

        echo _UNOCART_ORDER_UPDATE

?>
             </th>
             <th>
               <?php

        echo _UNOCART_ORDER_TOTAL

?>
             </th>
           </tr>
           <?php

        $i = 0;
        foreach ($rows as $row) {

?>
           <tr class = "row<?php

            echo ($i % 2);

?>">
             <td>
               <?php

            echo $pageNav->rowNumber($i);

?>
             </td>
             <td>
               <input type = "checkbox" id = "cb<?php

            echo $i++

?>" name = "cid[]" value = "<?php

            echo $row->order_id

?>" />
             </td>
             <td>
               <a href = "index2.php?option=com_unocart&act=orders&task=show_one&order_id=<?php

            echo $row->order_id

?>"><?php

            echo $row->order_number;

?></a>
             </td>
             <td>
               <!--<a href = "index2.php?option=com_unocart&act=users&task=show&user_id=<?php

            echo $row->user_id

?>">-->
                 <?php

            echo $row->f_name . " " . $row->l_name

?>
               <!--</a>-->
             </td>
             <td class = "center">
               <a href = "javascript:void window.open('<?php

            echo $unocartConfig->live_path . "/pdf/files/" . $row->pdf_file

?>', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=800,height=600,directories=no,location=no');">
                <img border = "0"  src = "components/com_unocart/images/unocart_print.png" alt = "print" />
               </a>
             </td>
             <td>
               <?php

            $date = explode(" ", $row->order_date);
            echo $date[0];

?>
             </td>
             <td>
               <?php

            $date = explode(" ", $row->order_m_date);
            echo $date[0];

?>
             </td>
             <td>
               <?php

            echo mosHTML::selectList($lists['status_orders'], 'select_status_id[' . $row->
                order_id . ']', 'class = "inputbox" size = "1" id = "status_id_' . $row->
                order_id . '"', 'status_id', 'status_name', $row->order_status);
            ;

?>
             </td>
             <td>
               <input class = "inputbox" type = "checkbox" name = "order_check_id[<?php

            echo $row->order_id

?>]" id = "order_check_id_<?php

            echo $row->order_id

?>" />
               <label for = "order_id_<?php

            echo $row->order_id

?>"><?php

            echo _UNOCART_NOTIFY_CUSTOMER

?></label><br />
               <input class = "button" type = "button" name = "" value = "<?php

            echo _UNOCART_UPDATE_STATUS

?>" onclick = "verifyStatus(<?php

            echo $row->order_status;

?>, <?php

            echo $row->order_id;

?>, '<?php

            echo _UNOCART_CHANGE_ORDER_STATUS;

?>', 0, '<?php

            echo $adv_string

?>');" />
             </td>
             <td>
               <?php

            $params['price'] = $row->order_total;
            $params['currency_code'] = $row->currency_code;
            echo format_price($params)

?>
             </td>
           </tr>
           <?php

        }

?>
         </table>
         <?php

        echo $pageNav->getListFooter();

?>
         <input type = "hidden" name = "option" value = "com_unocart" />
         <input type = "hidden" name = "act" value = "orders" />
         <input type = "hidden" name = "task" value = "delete" />
         <input type = "hidden" name = "boxchecked" value = "1" />
         <input type = "hidden" name = "status_id" value = "<?php

        echo mosGetParam($_REQUEST, 'status_id', '')

?>" />
       </form>
    <?php

    }

    function showOrder($order, $order_history, $order_item, $lists, $print)
    {

?>
      <form action = "index2.php" method = "post" name = "adminForm">
      <table class = "adminlist" width = "100%">
        <tr>
          <td width = "50%" style = "vertical-align:top">
            <table width = "80%">
              <tr>
                <th colspan = "2" align = "center">
                  <?php

        echo _UNOCART_ORDER_PURCHASE;

?>
                </th>
              </tr>
              <tr>
                <td width = "50%">
                  <?php

        echo _UNOCART_ORDER_NUMBER;

?>
                </td>
                <td>
                  <?php

        echo $order->order_id;

?>
                </td>
              </tr>
              <tr>
                <td width = "50%">
                  <?php

        echo _UNOCART_ORDER_DATE;

?>
               </td>
                <td>
                  <?php

        echo $order->order_date;

?>
                </td>
              </tr>
              <tr>
                <td>
                  <?php

        echo _UNOCART_ORDER_STATUS;

?>
               </td>
                <td>
                  <?php

        echo ($print) ? ($order->status_name) : ($order_history[count($order_history) -
            1]->status_name);

?>
                </td>
              </tr>
              <tr>
                <td>
                  <?php

        echo _UNOCART_IPADRESS;

?>
               </td>
                <td>
                  <?php

        echo $order->ip_address;

?>
                </td>
              </tr>
            </table>
          </td>
          <td width = "50%" style = "vertical-align: top">
              <?php

        if (!$print) {
            $tabs = new mosJTabs(0);
            $tabs->startPane('content-pane');
            $tabs->startTab(_UNOCART_STATUS_CHANGE, 'first-page');

?>
                <table width = "100%">
                  <tr>
                    <th colspan = "2" align = "center">
                      <?php

            echo _UNOCART_STATUS_CHANGE

?>:
                    </th>
                  </tr>
                  <tr>
                    <td colspan = "2">
                      <?php

            echo _UNOCART_ORDER_STATUS

?>
                      <?php

            echo $lists['status'];

?>
                      <input type = "button" class = "button" name = "update_status" onclick = "verifyStatus(<?php

            echo $order->order_status

?>, <?php

            echo $order->order_id

?>, '<?php

            echo _UNOCART_CHANGE_ORDER_STATUS;

?>', 1)" value = "<?php

            echo _UNOCART_UPDATE_STATUS

?>" />
                    </td>
                  </tr>
                  <tr>
                    <td colspan = "2">
                      <table>
                        <tr>
                          <td>
                            <?php

            echo _UNOCART_COMMENT;

?>:
                          </td>
                          <td>
                            <textarea id = "comments" name = "comments"></textarea>
                          </td>
                          <td>
                            <input type = "checkbox" class = "inputbox"  name = "notify" id = "notify" /><label for = "notify">  <?php

            echo _UNOCART_NOTIFY_USER;

?></label><br />
                            <input type = "checkbox" class = "inputbox"  name = "include" id = "include" /><label for = "include">  <?php

            echo _UNOCART_INCLUDE_COMMENT;

?></label>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              <?php

            $tabs->endTab();
            $tabs->startTab(_UNOCART_ORDER_HISTORY, 'second-page');

?>
                <table>
                    <tr class = "bold">
                      <td>
                        <?php

            echo _UNOCART_DATE_ADDED;

?>
                      </td>
                      <td>
                        <?php

            echo _UNOCART_NOTIFY_CUSTOMER;

?>
                      </td>
                      <td>
                        <?php

            echo _UNOCART_STATUS;

?>
                      </td>
                      <td>
                        <?php

            echo _UNOCART_COMMENT;

?>
                      </td>
                    </tr>
                  <?php

            foreach ($order_history as $history) {

?>
                    <tr>
                      <td>
                        <?php

                echo $history->status_date_added

?>
                      </td>
                      <td class = "center">
                        <?php

                $notify_customer = ($history->customer_notify) ? ('tick.png') : ('publish_x.png');

?>
                        <img src = "images/<?php

                echo $notify_customer

?>" alt = "notify_customer" border = "0" />
                      </td>
                      <td>
                        <?php

                echo $history->status_name

?>
                      </td>
                      <td>
                        <?php

                echo $history->comments

?>
                      </td>
                    </tr>
                  <?php

            }

?>
                </table>
              <?php

            $tabs->endTab();
            $tabs->endPane();
        }

?>
          </td>
        </tr>
      </table>
      <table width = "100%" class = "adminlist">
        <tr>
          <th colspan = "2" width = "50%" class = "center">
             <?php

        echo _UNOCART_BILL_TO

?>
          </th>
          <th colspan = "2" width = "50%" class = "center">
             <?php

        echo _UNOCART_SHIP_TO

?>
          </th>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_FULL_NAME

?>
          </td>
          <td>
            <?php

        echo $order->f_name . " " . $order->l_name

?>
          </td>
          <td>
            <?php

        echo _UNOCART_FULL_NAME

?>
          </td>
          <td>
            <?php

        echo $order->d_f_name . " " . $order->d_l_name

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_FIRMA_NAME;

?>
          </td>
          <td>
            <?php

        echo $order->firma_name;

?>
          </td>
          <td>
            <?php

        echo _UNOCART_FIRMA_NAME;

?>
          </td>
          <td>
            <?php

        echo $order->d_firma_name;

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_STREET_NR

?>
          </td>
          <td>
            <?php

        echo $order->street;

?>
          </td>
          <td>
            <?php

        echo _UNOCART_STREET_NR

?>
          </td>
          <td>
            <?php

        echo $order->d_street;

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_CITY

?>
          </td>
          <td>
            <?php

        echo $order->city;

?>
          </td>
          <td>
            <?php

        echo _UNOCART_CITY

?>
          </td>
          <td>
            <?php

        echo $order->d_city;

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_ZIP

?>
          </td>
          <td>
            <?php

        echo $order->zip;

?>
          </td>
          <td>
            <?php

        echo _UNOCART_ZIP

?>
          </td>
          <td>
            <?php

        echo $order->d_zip;

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_STATE

?>
          </td>
          <td>
            <?php

        echo $order->state;

?>
          </td>
          <td>
            <?php

        echo _UNOCART_STATE

?>
          </td>
          <td>
            <?php

        echo $order->d_state;

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_COUNTRY

?>
          </td>
          <td>
			<?php

        echo $order->country;

?>
          </td>
          <td>
            <?php

        echo _UNOCART_COUNTRY

?>
          </td>
          <td>
            <?php

        echo $order->country;

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_TELEFON

?>
          </td>
          <td>
            <?php

        echo $order->phone;

?>
          </td>
          <td>
            <?php

        echo _UNOCART_TELEFON

?>
          </td>
          <td>
            <?php

        echo $order->d_phone;

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_EMAIL

?>
          </td>
          <td>
            <?php

        echo $order->email;

?>
          </td>
          <td>
          </td>
          <td>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_FAX

?>
          </td>
          <td>
            <?php

        echo $order->fax;

?>
          </td>
          <td>
          </td>
          <td>
          </td>
        </tr>
      </table>
      <table class = "adminlist" width = "100%">
       <tr>
         <th>
           <?php

        echo _UNOCART_QUANTITY

?>
         </th>
         <th>
           <?php

        echo _UNOCART_NAME_PRODUCT

?>
         </th>
         <th>
           <?php

        echo _UNOCART_SKU

?>
         </th>
         <th>
           <?php

        echo _UNOCART_PRICE

?>
         </th>
         <th>
           <?php

        echo _UNOCART_TOTAL

?>
         </th>
       </tr>
       <?php

        $subtotal = 0

?>
       <?php

        foreach ($order_item as $item) {

?>
       <tr>
         <td>
           <?php

            echo $item->product_quantity

?>
         </td>
         <td>
           <?php

            echo $item->product_name

?><br />
           <?php

            echo $item->product_attributes;

?>
         </td>
         <td>
           <?php

            echo $item->product_ean

?>
         </td>
         <td>
           <?php

            $params['price'] = $item->product_item_price;
            $params['currency_code'] = $order->currency_code;
            echo format_price($params);

?>
         </td>
         <td>
           <?php

            $subtotal += $item->product_quantity * $item->product_item_price;
            $params['price'] = $item->product_quantity * $item->product_item_price;
            echo format_price($params);

?>
         </td>
       </tr>
	   <?php

        }

?>
       <tr>
         <td colspan = "5" style = "height: 20px">
         </td>
       </tr>
       <tr class = "bold">
         <td colspan = "4" class = "right">
            <?php

        echo _UNOCART_SUBTOTAL

?>
         </td>
         <td class = "left">
           <?php

        $params['price'] = $subtotal;
        echo format_price($params);

?>
         </td>
       </tr>
       <tr class = "bold">
         <td colspan = "4" class = "right">
            <?php

        echo _UNOCART_SHIPPING_PRICE

?>
         </td>
         <td class = "left">
           <?php

        $params['price'] = $order->order_shipping;
        echo format_price($params);

?>
         </td>
       </tr>
       <tr class = "bold">
         <td colspan = "4" class = "right">
            <?php

        echo _UNOCART_SUBTOTAL2

?>
         </td>
         <td class = "left">
           <?php

        $params['price'] = $order->order_subtotal + $order->order_shipping;
        echo format_price($params);

?>
         </td>
       </tr>
       <tr class = "bold">
         <td colspan = "4" class = "right">
            <?php

        echo _UNOCART_COUPON_DISCOUNT

?>
         </td>
         <td class = "left">
           <?php

        $params['price'] = -$order->order_discount;
        echo format_price($params);

?>
         </td>
       </tr>
       <tr class = "bold">
         <td colspan = "4" class = "right">
            <?php

        echo _UNOCART_TOTAL

?>
         </td>
         <td class = "left">
           <?php

        $params['price'] = $order->order_total;
        echo format_price($params);

?>
         </td>
       </tr>
      </table>

      <table width = "100%">
        <tr style = "vertical-align:top">
          <td width = "33%">
             <table class="adminlist" width="100%">
               <tr>
                 <th>
                   <?php

        echo _UNOCART_SHIPPING_INFORMATION

?>
                 </th>
               </tr>
               <tr>
                 <td>
                   <?php

        echo $order->shipping_info

?>
                 </td>
               </tr>
             </table>
          </td>
          <td width = "34%">
             <table class="adminlist" width="100%">
               <tr>
                 <th>
                  <?php

        echo _UNOCART_PAYMENT_INFORMATION

?>
                 </th>
               </tr>
               <tr>
                 <td>
                   <?php

        echo nl2br($order->payment_params)

?>
                 </td>
               </tr>
             </table>
          </td>
          <td width = "33%">
             <table class="adminlist" width="100%">
               <tr>
                 <th>
                   <?php

        echo _UNOCART_CUSTOMER_COMMENT

?>
                 </th>
               </tr>
               <tr>
                 <td>
                   <?php

        echo $order->order_add_info

?>
                 </td>
               </tr>
             </table>
          </td>
        </tr>
      </table>
      </form>
      <?php

    }

    function showPanel()
    {

?>
      <table>
       <tr>
         <td width = "40%">
	        <div id = "cpanel">
	        <?php

        quickiconButton('index2.php?option=com_unocart&act=products',
            'unocart_products_b.png', _UNOCART_PRODUCTS);
        quickiconButton('index2.php?option=com_unocart&act=categories',
            'unocart_categories_b.png', _UNOCART_CATEGORIES);
        quickiconButton('index2.php?option=com_unocart&act=manufacturers',
            'unocart_manufacturer_b.png', _UNOCART_MANUFACTURERS);
        quickiconButton('index2.php?option=com_unocart&act=config',
            'unocart_configuration_b.png', _UNOCART_CONFIG);
        quickiconButton('index2.php?option=com_unocart&act=coupons',
            'unocart_coupons_b.png', _UNOCART_COUPONS);
        quickiconButton('index2.php?option=com_unocart&act=orders',
            'unocart_orders_b.png', _UNOCART_ORDERS);
        quickiconButton('index2.php?option=com_unocart&act=users', 'unocart_users_b.png',
            _UNOCART_USERS);
        quickiconButton('index2.php?option=com_unocart&act=report',
            'unocart_report_b.png', _UNOCART_REPORT);
        quickiconButton('index2.php?option=com_unocart&act=info', 'unocart_info_b.png',
            _UNOCART_INFO);

?>
	        </div>
         </td>
         <td width = "60%" style = "vertical-align:top">
			<div id = "contacts">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td><img src = "components/com_unocart/images/unocart_logo.jpg" /></td>
					</tr>
					<tr>
						<td valign="middle">
							<img src="components/com_unocart/images/phone.gif" align="left" border="0">
							<div>Tel. 0049(0)89-92 92 86-0<br>
							 Fax. 0049(0)89-92 92 86-75</div>
						</td>
			        </tr>
					<tr>
						<td valign="middle">
							<img src="components/com_unocart/images/at.gif" align="left" border="0">
							<div>Web. <a href="http://www.joomshopping.com/" target="_blank">www.joomshopping.com</a>
							 <br><a href="mailto:info@joomshopping.com">info@joomshopping.com</a></div>
						</td>
			        </tr>
				</table>
				<iframe src = "http://www.joomshopping.com/adsense.php" frameborder = "0" width = "0" height = "0"></iframe>
			</div>         	
         </td>
       </tr>
      </table>
      <?php

    }

    function showAttributes(&$rows)
    {
        $count = count($rows);
        $i = 0;

?>
      <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_ATTRIBUTES;

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo $count;

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_ATTRIBUT;

?>
            </th>
            <th colspan = "2" width = "40">
              <?php

        echo _UNOCART_ORDERING

?>
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_ATTRIBUT_OPTIONS;

?>
            </th>
            <th>
            </th>
          </tr>
        <?php

        $count = count($rows);
        foreach ($rows as $row) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i;

?>" value = "<?php

            echo $row->attr_id;

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_ATTRIBUT;

?>" href = "index2.php?option=com_unocart&act=attributes&task=edit&attr_id=<?php

            echo $row->attr_id;

?>"><?php

            echo $row->attr_name;

?></a>
           </td>
           <td align = "right" width = "20">
            <?php

            if ($i != 0)
                echo '<a href = "index2.php?option=com_unocart&act=attributes&task=order&id=' .
                    $row->attr_id . '&order=up&number=' . $row->attr_ordering .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_UP .
                    '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20">
              <?php

            if ($i++ != $count - 1)
                echo '<a href = "index2.php?option=com_unocart&act=attributes&task=order&id=' .
                    $row->attr_id . '&order=down&number=' . $row->attr_ordering .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_DOWN .
                    '" src="images/downarrow.png"/></a>';

?>
           </td>
           <td>
             <a href = "index2.php?option=com_unocart&act=values&task=show&attr_id=<?php

            echo $row->attr_id

?>"><?php

            echo _UNOCART_OPTIONS

?></a>
             <?php

            echo $row->values;

?>
           </td>
           <td>
           </td>
          </tr>
         <?php

        }

?>
		</table>
         <input type = "hidden" name = "option" value = "com_unocart" />
	     <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
	     <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
         <input type = "hidden" name = "hidemainmenu" value = "0" />
         <input type = "hidden" name = "boxchecked" value = "0" />
      </form>
      <?php

    }

    function editAttribute(&$rows, $attr_id, $lists, $edit)
    {
        $show_lang = (count($rows) > 1) ? ("1") : ("0");

?>
      <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($attr_id) ? (_UNOCART_EDIT_ATTRIBUT) : (_UNOCART_NEW_ATTRIBUT);

?>
            </th>
          </tr>
        </table>
        <table>
	         <tr>
	           <td>
                 <?php

        echo _UNOCART_TYPE_ATTRIBUT

?>
	           </td>
	           <td>
                 <?php

        echo $lists['type_attribut']

?>
	           </td>
	         </tr>
	      <?php

        foreach ($rows as $row) {

?>
	         <tr>
	           <td>
	             <?php

            echo $output = ($show_lang) ? (_UNOCART_NAME_ATTRIBUT . "(" . $row->language .
                ")") : (_UNOCART_NAME_ATTRIBUT);

?>
	           </td>
	           <td>
	             <input type = "text" class = "inputbox" name = "attrib[<?php

            echo $row->language

?>]" value = "<?php

            if ($edit)
                echo $row->attr_name

?>" />
	           </td>
	         </tr>
	      <?php

        }

?>
        </table>
         <input type = "hidden" name = "option" value = "com_unocart" />
	     <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
	     <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
         <input type = "hidden" name = "hidemainmenu" value = "0" />
         <input type = "hidden" name = "attr_id" value = "<?php

        echo $attr_id

?>" />
    <?php

    }


    function showValues(&$rows, $attr_id, $attr_name)
    {
        $count = count($rows);
        $i = 0;

?>
      <a href = "index2.php?option=com_unocart&act=attributes"><?php

        echo _UNOCART_RETURN_TO_ATTRIBUTES;

?></a>
      <form action = "index2.php" method = "post" name = "adminForm">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_LIST_VALUES . " (" . $attr_name . ")";

?>
            </th>
          </tr>
        </table>
        <table class = "adminlist" width = "70%">
          <tr>
            <th class = "title" width  = "10">
              #
            </th>
            <th width = "20">
    		  <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php

        echo $count;

?>);" />
            </th>
            <th width = "200" align = "left">
              <?php

        echo _UNOCART_NAME_VALUE;

?>
            </th>
            <th width = "100" align = "left">
              <?php

        echo _UNOCART_IMAGE_VALUE;

?>
            </th>
            <th colspan = "2" width = "40">
            </th>
            <th>
            </th>
          </tr>
        <?php

        foreach ($rows as $row) {

?>
          <tr class = "row<?php

            echo $i % 2;

?>">
           <td>
             <?php

            echo $i + 1;

?>
           </td>
           <td>
             <input type = "checkbox" onclick = "isChecked(this.checked)" name = "cid[]" id = "cb<?php

            echo $i;

?>" value = "<?php

            echo $row->value_id

?>" />
           </td>
           <td>
             <a title = "<?php

            echo _UNOCART_EDIT_VALUE;

?>" href = "index2.php?option=com_unocart&act=values&task=edit&value_id=<?php

            echo $row->value_id;

?>&attr_id=<?php

            echo mosGetParam($_REQUEST, 'attr_id')

?>"><?php

            echo $row->value_name;

?></a>
           </td>
           <td>
             <?php

            if ($row->image) {

?>
               <img src = "<?php

                echo JPATH_SITE;

?>/administrator/components/com_unocart/images/attr/<?php

                echo $row->image

?>" alt = "<?php

                echo $row->value_name

?>"/>
             <?php

            }

?>
           </td>
           <td align = "right" width = "20">
            <?php

            if ($i != 0)
                echo '<a href = "index2.php?option=com_unocart&act=values&task=order&id=' . $row->
                    value_id . '&order=up&number=' . $row->value_ordering . '&attr_id=' . $attr_id .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_UP .
                    '" src="images/uparrow.png"/></a>';

?>
           </td>
           <td align = "left" width = "20">
              <?php

            if ($i++ != $count - 1)
                echo '<a href = "index2.php?option=com_unocart&act=values&task=order&id=' . $row->
                    value_id . '&order=down&number=' . $row->value_ordering . '&attr_id=' . $attr_id .
                    '"><img width="12" height="12" border="0" alt="' . _UNOCART_DOWN .
                    '" src="images/downarrow.png"/></a>';

?>
           </td>
           <td>
           </td>
          </tr>
         <?php

        }

?>
		</table>
         <input type = "hidden" name = "option" value = "com_unocart" />
	     <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
	     <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
         <input type = "hidden" name = "hidemainmenu" value = "0" />
         <input type = "hidden" name = "boxchecked" value = "0" />
         <input type = "hidden" name = "attr_id" value = "<?php

        echo mosGetParam($_REQUEST, 'attr_id')

?>" />
      </form>
      <?php

    }

    function editValue(&$rows, $value_id, $attr_id, $edit)
    {
        $show_lang = (count($rows) > 1) ? (1) : (0);

?>
      <script type = "text/javascript">
        function deleteImageValue(idValue){
           if (confirm('<?php

        echo _UNOCART_IMAGE_DELETE_CONFIRM

?>')){
           	location.href = 'index2.php?option=com_unocart&act=values&task=edit&op=delete_image&value_id=<?php

        echo $value_id

?>&attr_id=<?php

        echo $attr_id

?>';
           }
		}
      </script>
      <form action = "index2.php" method = "post" name = "adminForm" enctype = "multipart/form-data">
		<table class = "adminheading">
          <tr>
            <th>
              <?php

        echo _UNOCART_TITLE . ': ' . $temp = ($value_id) ? (_UNOCART_EDIT_VALUE) : (_UNOCART_NEW_VALUE);

?>
            </th>
          </tr>
        </table>
        <table>
	      <?php

        foreach ($rows as $row) {

?>
	         <tr>
	           <td>
	             <?php

            echo $output = ($show_lang) ? (_UNOCART_NAME_VALUE . "(" . $row->language . ")") : (_UNOCART_NAME_VALUE);

?>
	           </td>
	           <td>
	             <input type = "text" class = "inputbox" name = "values[<?php

            echo $row->language

?>]" value = "<?php

            if ($edit)
                echo $row->value_name

?>" />
	           </td>
	         </tr>
	      <?php

        }

?>
        </table>
        <?php

        if ($edit && $rows[0]->image) {

?>
          <img src = "<?php

            echo JPATH_SITE;

?>/administrator/components/com_unocart/images/attr/<?php

            echo $rows[0]->image

?>" alt = "<?php

            echo $rows[0]->value_name

?>"/>
          <input class = "button" type = "button" name = "delete_image" value = "<?php

            echo _UNOCART_DELETE_IMAGE

?>" onclick = "deleteImageValue(<?php

            echo $rows[0]->value_id

?>)" />
        <?php

        }

?>
        <br />
        <br />
        <input type = "file" name = "image" />
        <input type = "hidden" name = "option" value = "com_unocart" />
	    <input type = "hidden" name = "act" value = "<?php

        echo mosGetParam($_REQUEST, 'act')

?>" />
	    <input type = "hidden" name = "task" value = "<?php

        echo mosGetParam($_REQUEST, 'task', 0)

?>" />
        <input type = "hidden" name = "hidemainmenu" value = "0" />
        <input type = "hidden" name = "attr_id" value = "<?php

        echo $attr_id

?>" />
        <input type = "hidden" name = "value_id" value = "<?php

        echo $value_id;

?>" />
    <?php

    }

    function showUsers(&$rows, $pageNav)
    {
        $limitstart = mosGetParam($_REQUEST, 'limitstart', '');
        $limit = mosGetParam($_REQUEST, 'limit', 10);
        $adv_string = '&limitstart=' . $limitstart . '&limit=' . $limit;

?>
       <form name = "adminForm" method = "post" action = "index2.php">
         <table class = "adminheading">
           <tr>
             <th>
               <?php

        echo _UNOCART_USER_LIST;

?>
             </th>
           </tr>
         </table>
         <table class = "adminlist" width = "100%">
           <tr>
             <th width = "20">
               #
             </th>
             <th width = "20">
               <input type="checkbox" onclick="checkAll(<?php

        echo count($rows);

?>)" value="" name="toggle" />
             </th>
             <th width = "20" align = "left">
               <?php

        echo _UNOCART_USERNAME

?>
             </th>
             <th width = "150" align = "left" style = "padding-left:20px">
               <?php

        echo _UNOCART_USER_FIRSTNAME

?>
             </th>
             <th width = "150" align = "left">
               <?php

        echo _UNOCART_USER_LASTNAME

?>
             </th>
             <th>
             </th>
           </tr>
           <?php

        $i = 0;
        foreach ($rows as $row) {

?>
           <tr class = "row<?php

            echo ($i % 2);

?>">
             <td>
               <?php

            echo $pageNav->rowNumber($i);

?>
             </td>
             <td>
               <input type = "checkbox" id = "cb<?php

            echo $i++

?>" name = "cid[]" value = "<?php

            echo $row->order_id

?>" />
             </td>
             <td>
               <a href = "index2.php?option=com_unocart&act=users&task=edit&user_id=<?php

            echo $row->user_id

?>">
                 <?php

            echo $row->username

?>
               </a>
             </td>
             <td style = "padding-left:20px">
               <?php

            echo $row->f_name;

?>
             </td>
             <td>
               <?php

            echo $row->l_name;

?>
             </td>
             <td>
             </td>
           </tr>
           <?php

        }

?>
         </table>
         <?php

        echo $pageNav->getListFooter();

?>
         <input type = "hidden" name = "option" value = "com_unocart" />
         <input type = "hidden" name = "act" value = "users" />
         <input type = "hidden" name = "boxchecked" value = "1" />
       </form>
    <?php

    }

    function editUser($user, $lists)
    {

?>
      <form action = "index2.php" method = "post" name = "adminForm">
      <?php

        $tabs = new mosJTabs(0);
        $tabs->startPane('content-pane');
        $tabs->startTab(_UNOCART_GENERAL, "first-page");
        echo $lists['userform'];
        $tabs->endTab();

        $tabs->startTab(_UNOCART_BILL_TO, "second-page");

?>
	  <table>
		<tr>
          <td>
            <?php

        echo _UNOCART_USERGROUP_NAME;

?>
          </td>
          <td>
            <?php

        echo $lists['usergroups'];

?>
          </td>
        </tr>
		<tr>
          <td>
            <?php

        echo _UNOCART_USER_FIRSTNAME;

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "f_name" value = "<?php

        echo $user->f_name

?>" />
          </td>
        </tr>
		<tr>
          <td>
            <?php

        echo _UNOCART_USER_LASTNAME;

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "l_name" value = "<?php

        echo $user->l_name

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_FIRMA_NAME;

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "firma_name" value = "<?php

        echo $user->firma_name

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_STREET_NR

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "street" value = "<?php

        echo $user->street

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_CITY

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "city" value = "<?php

        echo $user->city

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_ZIP

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "zip" value = "<?php

        echo $user->zip

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_STATE;

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "state" value = "<?php

        echo $user->state;

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_COUNTRY;

?>
          </td>
          <td>
			<?php

        echo $lists['country'];

?>
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_TELEFON;

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "phone" value = "<?php

        echo $user->phone;

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_EMAIL;

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "email" value = "<?php

        echo $user->email;

?>" />
          </td>
        </tr>
        <tr>
          <td>
            <?php

        echo _UNOCART_FAX;

?>
          </td>
          <td>
            <input type = "text" class = "inputbox" name = "fax" value = "<?php

        echo $user->fax;

?>" />
          </td>
        </tr>
      </table>
      <?php

        echoHiddenField(array('delivery_adress', 'd_f_name', 'd_l_name', 'd_firma_name',
            'd_street', 'd_zip', 'd_city', 'd_state', 'd_phone', 'd_title'), $user);
        echoHiddenField(array('option' => 'com_unocart', 'act' => 'users', 'task' =>
            'save', 'user_id' => $user->user_id, 'title' => ($user->title) ? ($user->title) :
            (1)));

?>
      </form>
      <?php

        $tabs->endTab();
        $tabs->endPane();
    }

    function showInfo()
    {

?>
			<p><br>Anschrift und andere Angaben zum Unternehmen:<br><br><strong>MAXX<em>marketing GmbH</em></strong><br>Englschalkinger Str. 224<br>D-81927 Munchen<br><br>Tel: +49 (0)89 - 929286-0<br>Fax:+49 (0)89 - 929286-75<br>eMail: <strong><a class="link" href="mailto:info@joomshopping.com">info@joomshopping.com</a></strong><br><br></p>
            <p><strong>Steueridentifikationsnummer:<br></strong>DE221510498<br><br><strong>Umsatzsteuer Nummer:<br></strong>143/160/40099<strong><br></strong><br></p>
            <p><strong>Geschaftsfuhrer:</strong> <br>Klaus Huber</p>
		<?php

    }

    function showFormReport()
    {

?>
			<form action = "index2.php" method = "post">
				<table width = "50%">
					<tr>
						<td colspan = "2">
							<?php

        echo _UNOCART_REPORT_TEXT;

?>
						</td>
					</tr>
					<tr>
						<td>
							<?php

        echo _UNOCART_REPORT_NAME;

?>
						</td>
						<td>
							<input type = "text" class = "inputbox" name = "name" width = "100px" />
						</td>
					</tr>
					<tr>
						<td>
							<?php

        echo _UNOCART_REPORT_PHONE;

?>
						</td>
						<td>
							<input type = "text" class = "inputbox" name = "phone" width = "100px" />
						</td>
					</tr>
					<tr>
						<td>
							<?php

        echo _UNOCART_REPORT_TEXT_INFO;

?>
						</td>
						<td>
							<textarea name = "text" id = "text" cols = "40" rows = "10"></textarea>
						</td>
					</tr>
					<tt>
						<td>
							 
						</td>
						<td>
							<input type = "submit" class = "button" name = "send" value = "<?php

        echo _UNOCART_REPORT_SEND;

?>" />
						</td>
					</tt>
				</table>
				<input type = "hidden" name = "task" value = "send" />
				<input type = "hidden" name = "act" value = "report" /> 
				<input type = "hidden" name = "option" value = "com_unocart" />
			</form>
		<?php

    }

    function showAllUsergroups($usergroups)
    {

?>
        <form action = "index2.php" method = "post" enctype = "multipart/form-data" name = "adminForm">
			<table class = "adminheading">
	        	<tr>
	            	<th>
	              		<?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_USERGROUPS;

?>
	            	</th>
	          	</tr>
	        </table>
	        <table class = "adminlist" width = "70%">
	          	<tr>
	            	<th class = "title" width  = "10">
	              		#
	            	</th>
	            	<th width = "20">
	    		  		<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php

        echo count($usergroups);

?>);" />
	            	</th>
	            	<th width = "150" align = "left">
	              		<?php

        echo _UNOCART_USERGROUP_NAME;

?>
	            	</th>
	            	<th width = "150" align = "left">
	              		<?php

        echo _UNOCART_USERGROUP_DESCRIPTION;

?>
	            	</th>
	            	<th width = "100">
						<?php

        echo _UNOCART_USERGROUP_IS_DEFAULT;

?>
					</th>
	            	<th>
	            	</th>
	          	</tr>
			<?php

        $i = 0;
        foreach ($usergroups as $usergroup) {

?>
		        <tr class = "row<?php

            echo ($i % 2);

?>">
					<td>
						<?php

            echo $i + 1;

?>
					</td>
					<td align = "center">
						<input type = "checkbox" id = "cb<?php

            echo $i++;

?>" name = "cid[]" value = "<?php

            echo $usergroup->usergroup_id

?>" />
					</td>
					<td>
						<a href = "index2.php?option=com_unocart&act=usergroups&task=edit&usergroup_id=<?php

            echo $usergroup->usergroup_id;

?>"><?php

            echo $usergroup->usergroup_name;

?></a>
					</td>
					<td>
						<?php

            echo $usergroup->usergroup_description;

?>
					</td>
					<td align = "center"><?php

            $default_image = ($usergroup->usergroup_is_default) ? ('tick.png') : ('publish_x.png');

?><img src = "images/<?php

            echo $default_image;

?>" /></td>
					<td>
					</td>
				</tr>	
			<?php

        }

?>
			</table>
			<input type = "hidden" name = "option" value = "com_unocart" /> 
			<input type = "hidden" name = "act" value = "usergroups" />
			<input type = "hidden" name = "task" value = "" />
	        <input type = "hidden" name = "hidemainmenu" value = "0" />
	        <input type = "hidden" name = "boxchecked" value = "0" />
		</form>
	<?php

    }

    function editUsergroup($usergroup)
    {
        mosCommonHTML::loadOverlib();

?>
		<form action = "index2.php" method = "post" name = "adminForm">
			<table class = "adminheading">
	        	<tr>
	            	<th>
	              		<?php

        echo _UNOCART_TITLE . ': ' . _UNOCART_EDIT_USERGROUP;

?>
	            	</th>
	          	</tr>
	        </table>
	        <table width = "100%">
	        	<tr>
					<td width = "20%">
						<?php

        echo _UNOCART_USERGROUP_NAME;

?>	
					</td>
					<td>
						<input class = "inputbox" type = "text" name = "usergroup_name" value = "<?php

        echo $usergroup->usergroup_name;

?>" />
					</td>
				</tr>
	        	<tr>
					<td>
						<?php

        echo _UNOCART_USERGROUP_DESCRIPTION;

?>	
					</td>
					<td>
						<?php

        echo editorArea('editor1', $usergroup->usergroup_description,
            'usergroup_description', '100%;', '350', '75', '20');

?> 
					</td>
				</tr>
	        	<tr>
					<td>
						<?php

        echo _UNOCART_USERGROUP_DISCOUNT;

?>	
					</td>
					<td>
						<input class = "inputbox" type = "text" name = "usergroup_discount" value = "<?php

        echo $usergroup->usergroup_discount;

?>" />
					</td>
				</tr>
	        	<tr>
					<td>
						<?php

        echo _UNOCART_USERGROUP_IS_DEFAULT;

?>
						<?php

        echo mosToolTip(_UNOCART_USERGROUP_IS_DEFAULT_DESCRIPTION);

?>	
					</td>
					<td>
						<input type = "checkbox" name = "usergroup_is_default" <?php

        if ($usergroup->usergroup_is_default)
            echo 'checked = "checked"';

?> value = "1" />
					</td>
				</tr>
	        </table>
			<input type = "hidden" name = "option" value = "com_unocart" />
			<input type = "hidden" name = "act" value = "usergroups" />
			<input type = "hidden" name = "task" value = "save" />
			<input type = "hidden" name = "usergroup_id" value = "<?php

        echo $usergroup->usergroup_id;

?>" />
		</form>
		<?php

    }
}
function quickiconButton($link, $image, $text)
{

?>
		<div style="float:left;">
			<div class="icon">
				<a href="<?php

    echo $link;

?>">
					<?php

    echo mosAdminMenus::imageCheckAdmin($image, '/administrator/images/', null, null,
        $text);

?>
					<span><?php

    echo $text;

?></span>
				</a>
			</div>
		</div>
		<?php

}

?>